summaryrefslogtreecommitdiffstats
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
parent85850f3a5ef9f5a9d22e908ef263de8faa265a95 (diff)
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.
-rw-r--r--src/spell.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c
index 206e7609a5..dda81d9d58 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 64a6daa80a..af9caa4640 100644
--- 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,