From: Bram Moolenaar Date: Fri, 19 Jul 2019 21:04:34 +0000 (+0200) Subject: patch 8.1.1715: emoji characters are seen as word characters for spelling X-Git-Tag: v8.1.1715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06e6377009c5763639310fa3bf892dec27a63334;p=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. --- diff --git a/src/spell.c b/src/spell.c index 206e7609a..dda81d9d5 100644 --- a/src/spell.c +++ b/src/spell.c @@ -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; } /* diff --git a/src/version.c b/src/version.c index 64a6daa80..af9caa464 100644 --- a/src/version.c +++ b/src/version.c @@ -777,6 +777,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1715, /**/ 1714, /**/