summaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spell.c b/src/spell.c
index a16a9af5..6e0d986d 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -4234,7 +4234,9 @@ did_set_spelllang(wp)
if (spl_copy == NULL)
goto theend;
+#ifdef FEAT_MBYTE
wp->w_s->b_cjk = 0;
+#endif
/* Loop over comma separated language names. */
for (splp = spl_copy; *splp != NUL; )
@@ -4246,7 +4248,9 @@ did_set_spelllang(wp)
if (STRCMP(lang, "cjk") == 0)
{
+#ifdef FEAT_MBYTE
wp->w_s->b_cjk = 1;
+#endif
continue;
}