Mercurial > vim
diff src/buffer.c @ 1185:184d2020d8f1 v7.1a.001
updated for version 7.1a-001
author | vimboss |
---|---|
date | Sun, 06 May 2007 21:55:31 +0000 |
parents | 8531f7ee3662 |
children | f89c43568067 |
line wrap: on
line diff
--- 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 } /*