summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-12 21:50:18 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-12 21:50:18 +0000
commitf71a3db47e928aaeea83c7bea011188d4898d249 (patch)
tree6ac9fc74bf8aa5c666d3eb6176a507da5a2aff52 /src/buffer.c
parente48ec1fa6bf564f210131ae14767af4f9419ec66 (diff)
updated for version 7.0222
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 6010dbd40b..44aac3453e 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1713,6 +1713,8 @@ free_buf_options(buf, free_p_ff)
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 @@ get_winopts(buf)
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