forked from aniani/vim
patch 9.0.1353: too many "else if" statements to handle option values
Problem: Too many "else if" statements to handle option values. Solution: Add more functions to handle option value changes. (Yegappan Lakshmanan, closes #12058)
This commit is contained in:
committed by
Bram Moolenaar
parent
a63fd82328
commit
6d611de58c
@@ -3898,6 +3898,7 @@ set_bool_option(
|
||||
args.os_oldval.boolean = old_value;
|
||||
args.os_newval.boolean = value;
|
||||
args.os_doskip = FALSE;
|
||||
args.os_errbuf = NULL;
|
||||
errmsg = options[opt_idx].opt_did_set_cb(&args);
|
||||
if (args.os_doskip)
|
||||
return errmsg;
|
||||
@@ -4669,6 +4670,7 @@ set_num_option(
|
||||
args.os_flags = opt_flags;
|
||||
args.os_oldval.number = old_value;
|
||||
args.os_newval.number = value;
|
||||
args.os_errbuf = NULL;
|
||||
errmsg = options[opt_idx].opt_did_set_cb(&args);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user