1
0
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:
Bram Moolenaar
2019-07-19 23:04:34 +02:00
parent 85850f3a5e
commit 06e6377009
2 changed files with 3 additions and 1 deletions

View File

@@ -3077,7 +3077,7 @@ spell_mb_isword_class(int cl, win_T *wp)
if (wp->w_s->b_cjk) if (wp->w_s->b_cjk)
/* East Asian characters are not considered word characters. */ /* East Asian characters are not considered word characters. */
return cl == 2 || cl == 0x2800; return cl == 2 || cl == 0x2800;
return cl >= 2 && cl != 0x2070 && cl != 0x2080; return cl >= 2 && cl != 0x2070 && cl != 0x2080 && cl != 3;
} }
/* /*

View File

@@ -777,6 +777,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1715,
/**/ /**/
1714, 1714,
/**/ /**/