# HG changeset patch # User Bram Moolenaar # Date 1563570905 -7200 # Node ID 26e8d42987ca9a34896db62ec401453a173e110f # Parent ca8e754bdd539cefd999e54c8a0938a4e98f8416 patch 8.1.1715: emoji characters are seen as word characters for spelling commit https://github.com/vim/vim/commit/06e6377009c5763639310fa3bf892dec27a63334 Author: Bram Moolenaar Date: Fri Jul 19 23:04:34 2019 +0200 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1715, +/**/ 1714, /**/ 1713,