forked from aniani/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.
This commit is contained in:
@@ -3077,7 +3077,7 @@ 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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -777,6 +777,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1715,
|
||||
/**/
|
||||
1714,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user