diff src/spell.c @ 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 ce04ebdf26b8
children cc68aca87c17
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;
 }
 
 /*