diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-04-26 17:12:01 +0100 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 23:04:12 +0800 |
commit | bb7371ad82a1b65217565d578158f269dc735139 (patch) | |
tree | bdbf23a4d4239e84cb48b8830d6c8d675fcaa77d /src/nvim/option.c | |
parent | 46022a6b38adf335fe2454a5b498dcd3d317d154 (diff) | |
download | rneovim-bb7371ad82a1b65217565d578158f269dc735139.tar.gz rneovim-bb7371ad82a1b65217565d578158f269dc735139.tar.bz2 rneovim-bb7371ad82a1b65217565d578158f269dc735139.zip |
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)
https://github.com/vim/vim/commit/6d611de58c8e324491415da8e79c6bd3faa3e848
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 35f1ca1926..b941160e8a 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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 }; |