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
index 206e760..dda81d9 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -3077,7 +3077,7 @@
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;
}
/*