updated for version 7.0222
diff --git a/src/buffer.c b/src/buffer.c
index 6010dbd..44aac34 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1713,6 +1713,8 @@
clear_string_option(&buf->b_p_nf);
#ifdef FEAT_SYN_HL
clear_string_option(&buf->b_p_syn);
+#endif
+#ifdef FEAT_SPELL
clear_string_option(&buf->b_p_spc);
clear_string_option(&buf->b_p_spf);
vim_free(buf->b_cap_prog);
@@ -2389,7 +2391,7 @@
curwin->w_p_fdl = p_fdls;
#endif
-#ifdef FEAT_SYN_HL
+#ifdef FEAT_SPELL
if (curwin->w_p_spell && *buf->b_p_spl != NUL)
did_set_spelllang(buf);
#endif