mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05: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:
committed by
Bram Moolenaar
parent
997b8a015c
commit
af93691b53
@@ -480,7 +480,7 @@ spell_suggest(int count)
|
||||
|
||||
if (!curwin->w_p_spell)
|
||||
{
|
||||
did_set_spelllang(curwin);
|
||||
parse_spelllang(curwin);
|
||||
curwin->w_p_spell = TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user