]> granicus.if.org Git - vim/commitdiff
patch 8.1.1715: emoji characters are seen as word characters for spelling v8.1.1715
authorBram Moolenaar <Bram@vim.org>
Fri, 19 Jul 2019 21:04:34 +0000 (23:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 19 Jul 2019 21:04:34 +0000 (23:04 +0200)
Problem:    Emoji characters are seen as word characters for spelling. (Gautam
            Iyer)
Solution:   Exclude class 3 from word characters.

src/spell.c
src/version.c

index 206e7609a599502a304701047bbb9d29b9831b2b..dda81d9d58ad3f5995aab9f74bc362c85771edf4 100644 (file)
@@ -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;
 }
 
 /*
index 64a6daa80af780d975f5e54a9691afe36b62ef9a..af9caa4640596cd08692e7874774ad51bb6b18b5 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1715,
 /**/
     1714,
 /**/