summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-19 23:04:34 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-19 23:04:34 +0200
commit06e6377009c5763639310fa3bf892dec27a63334 (patch)
tree81187b73c8e6c9ce90e132216da8d13fe8969167 /src/spell.c
parent85850f3a5ef9f5a9d22e908ef263de8faa265a95 (diff)
downloadvim-git-06e6377009c5763639310fa3bf892dec27a63334.tar.gz
patch 8.1.1715: emoji characters are seen as word characters for spellingv8.1.1715
Problem: Emoji characters are seen as word characters for spelling. (Gautam Iyer) Solution: Exclude class 3 from word characters.
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c2
1 files changed, 1 insertions, 1 deletions
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;
}
/*