changeset 17434:26e8d42987ca v8.1.1715

patch 8.1.1715: emoji characters are seen as word characters for spelling commit https://github.com/vim/vim/commit/06e6377009c5763639310fa3bf892dec27a63334 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Jul 2019 23:15:05 +0200
parents ca8e754bdd53
children a7a08085d1dc
files src/spell.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }
 
 /*
--- 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,