commit | af93691b53f38784efce0b93fe7644c44a7e382e | [log] [tgz] |
---|---|---|
author | Yegappan Lakshmanan <yegappan@yahoo.com> | Mon Feb 20 12:16:39 2023 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Feb 20 12:16:39 2023 +0000 |
tree | 74e8f31e222aed907e80c4dc5b0bded5f7400537 | |
parent | 997b8a015cd39141866e953651d55c705275cbd6 [diff] [blame] |
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)
diff --git a/src/spellsuggest.c b/src/spellsuggest.c index 6b34ec8..a600557 100644 --- a/src/spellsuggest.c +++ b/src/spellsuggest.c
@@ -480,7 +480,7 @@ if (!curwin->w_p_spell) { - did_set_spelllang(curwin); + parse_spelllang(curwin); curwin->w_p_spell = TRUE; }