Skip to content

Commit 06e6377

Browse files
committed
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.
1 parent 85850f3 commit 06e6377

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/spell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,7 @@ spell_mb_isword_class(int cl, win_T *wp)
30773077
if (wp->w_s->b_cjk)
30783078
/* East Asian characters are not considered word characters. */
30793079
return cl == 2 || cl == 0x2800;
3080-
return cl >= 2 && cl != 0x2070 && cl != 0x2080;
3080+
return cl >= 2 && cl != 0x2070 && cl != 0x2080 && cl != 3;
30813081
}
30823082

30833083
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ static char *(features[]) =
777777

778778
static int included_patches[] =
779779
{ /* Add new patch number below this line */
780+
/**/
781+
1715,
780782
/**/
781783
1714,
782784
/**/

0 commit comments

Comments
 (0)