0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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 #12015)
This commit is contained in:
Yegappan Lakshmanan
2023-02-20 12:16:39 +00:00
committed by Bram Moolenaar
parent 997b8a015c
commit af93691b53
37 changed files with 1517 additions and 1509 deletions

View File

@@ -3142,7 +3142,7 @@ do_ecmd(
// 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);
#endif
if (command == NULL)