diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-06 21:55:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-06 21:55:31 +0000 |
commit | 706cdebcf8705be594101c26f44fa15fed80fbcb (patch) | |
tree | f0d567fc9a7298831d6e86534f9d5b2b37d62052 /src/ex_cmds.c | |
parent | a022bb35676b0c84b941cda782ba981591c1d719 (diff) |
updated for version 7.1a-001v7.1a.001
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index ffd90a137b..d99353b071 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -3088,6 +3088,9 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags) char_u *cp; #endif char_u *command = NULL; +#ifdef FEAT_SPELL + int did_get_winopts = FALSE; +#endif if (eap != NULL) command = eap->do_ecmd_cmd; @@ -3365,6 +3368,9 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags) * before, reset the local window options to the global * values. Also restores old folding stuff. */ get_winopts(buf); +#ifdef FEAT_SPELL + did_get_winopts = TRUE; +#endif #ifdef FEAT_AUTOCMD } @@ -3640,6 +3646,13 @@ do_ecmd(fnum, ffname, sfname, eap, newlnum, flags) } #endif +#ifdef FEAT_SPELL + /* If the window options were changed may need to set the spell language. + * Can only do this after the buffer has been properly setup. */ + if (did_get_winopts && curwin->w_p_spell && *buf->b_p_spl != NUL) + did_set_spelllang(buf); +#endif + if (command == NULL) { if (newcol >= 0) /* position set by autocommands */ |