mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
vim-patch:9.0.1330: handling new value of an option has a long "else if" chain
Problem: Handling new value of an option has a long "else if" chain.
Solution: Use a function pointer. (Yegappan Lakshmanan, closes vim/vim#12015)
af93691b53
This commit is contained in:
@@ -2640,7 +2640,7 @@ int do_ecmd(int fnum, char *ffname, char *sfname, exarg_T *eap, linenr_T newlnum
|
||||
// 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 && *curwin->w_s->b_p_spl != NUL) {
|
||||
(void)did_set_spelllang(curwin);
|
||||
(void)parse_spelllang(curwin);
|
||||
}
|
||||
|
||||
if (command == NULL) {
|
||||
|
Reference in New Issue
Block a user