mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
[RFC]vim-patch:8.1.{749,1715} #10545
* vim-patch:8.1.1715: emoji characters are seen as word characters for spelling Problem: Emoji characters are seen as word characters for spelling. (Gautam Iyer) Solution: Exclude class 3 from word characters.06e6377009
* vim-patch:8.1.0749: error message contains garbage Problem: Error message contains garbage. (Dominique Pelle) Solution: Use correct pointer to failed expression.6acc79f5d4
This commit is contained in:

committed by
Justin M. Keyes

parent
f55c1e4233
commit
7f66fdb54d
@@ -2616,7 +2616,7 @@ static bool spell_mb_isword_class(int cl, win_T *wp)
|
||||
if (wp->w_s->b_cjk)
|
||||
// East Asian characters are not considered word characters.
|
||||
return cl == 2 || cl == 0x2800;
|
||||
return cl >= 2 && cl != 0x2070 && cl != 0x2080;
|
||||
return cl >= 2 && cl != 0x2070 && cl != 0x2080 && cl != 3;
|
||||
}
|
||||
|
||||
// Returns true if "p" points to a word character.
|
||||
|
Reference in New Issue
Block a user