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 vim/vim#12058)

6d611de58c
This commit is contained in:
Lewis Russell
2023-04-26 17:12:01 +01:00
committed by zeertzjq
parent 46022a6b38
commit bb7371ad82
4 changed files with 147 additions and 72 deletions

View File

@@ -2510,6 +2510,8 @@ static const char *set_bool_option(const int opt_idx, char *const varp, const in
.os_oldval.boolean = old_value,
.os_newval.boolean = value,
.os_doskip = false,
.os_errbuf = NULL,
.os_errbuflen = 0,
.os_buf = curbuf,
.os_win = curwin
};
@@ -3100,6 +3102,8 @@ static const char *set_num_option(int opt_idx, char *varp, long value, char *err
.os_flags = opt_flags,
.os_oldval.number = old_value,
.os_newval.number = value,
.os_errbuf = NULL,
.os_errbuflen = 0,
.os_buf = curbuf,
.os_win = curwin
};