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:
Lewis Russell
2023-04-17 17:23:47 +01:00
committed by zeertzjq
parent 715587f8e4
commit ff34c91194
20 changed files with 963 additions and 712 deletions

View File

@@ -7711,7 +7711,7 @@ static void f_spellbadword(typval_T *argvars, typval_T *rettv, EvalFuncData fptr
const int wo_spell_save = curwin->w_p_spell;
if (!curwin->w_p_spell) {
did_set_spelllang(curwin);
parse_spelllang(curwin);
curwin->w_p_spell = true;
}
@@ -7768,7 +7768,7 @@ static void f_spellsuggest(typval_T *argvars, typval_T *rettv, EvalFuncData fptr
const int wo_spell_save = curwin->w_p_spell;
if (!curwin->w_p_spell) {
did_set_spelllang(curwin);
parse_spelllang(curwin);
curwin->w_p_spell = true;
}