summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-06 21:55:31 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-06 21:55:31 +0000
commit706cdebcf8705be594101c26f44fa15fed80fbcb (patch)
treef0d567fc9a7298831d6e86534f9d5b2b37d62052 /src/buffer.c
parenta022bb35676b0c84b941cda782ba981591c1d719 (diff)
downloadvim-git-706cdebcf8705be594101c26f44fa15fed80fbcb.tar.gz
updated for version 7.1a-001v7.1a.001
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 020e7e5d8..5df085769 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1426,6 +1426,13 @@ enter_buffer(buf)
if (curbuf->b_kmap_state & KEYMAP_INIT)
keymap_init();
#endif
+#ifdef FEAT_SPELL
+ /* May need to set the spell language. Can only do this after the buffer
+ * has been properly setup. */
+ if (!curbuf->b_help && curwin->w_p_spell && *curbuf->b_p_spl != NUL)
+ did_set_spelllang(curbuf);
+#endif
+
redraw_later(NOT_VALID);
}
@@ -2415,11 +2422,6 @@ get_winopts(buf)
if (p_fdls >= 0)
curwin->w_p_fdl = p_fdls;
#endif
-
-#ifdef FEAT_SPELL
- if (curwin->w_p_spell && *buf->b_p_spl != NUL)
- did_set_spelllang(buf);
-#endif
}
/*