diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-10-24 06:23:00 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-10-24 06:56:12 +0800 |
commit | 5436d9b3c6c537b243ea6af4f1acc143bf94de1c (patch) | |
tree | f24f7e4da14be6d40ec609b1e6c1b909a831f18e /src/nvim/option.c | |
parent | 3d2aca83de7f57ad0ba1c67acb87e55876569d0a (diff) | |
download | rneovim-5436d9b3c6c537b243ea6af4f1acc143bf94de1c.tar.gz rneovim-5436d9b3c6c537b243ea6af4f1acc143bf94de1c.tar.bz2 rneovim-5436d9b3c6c537b243ea6af4f1acc143bf94de1c.zip |
vim-patch:9.1.0804: tests: no error check when setting global 'cc'
Problem: tests: no error check when setting global 'cc'
Solution: also parse and check global 'cc' value (Milly)
closes: vim/vim#15914
https://github.com/vim/vim/commit/a441a3eaabbfc14b4772e07ecbecaaff3bd06a58
Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 89753f7cf8..8e6e068e96 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -2592,7 +2592,7 @@ static const char *did_set_swapfile(optset_T *args) static const char *did_set_textwidth(optset_T *args FUNC_ATTR_UNUSED) { FOR_ALL_TAB_WINDOWS(tp, wp) { - check_colorcolumn(wp); + check_colorcolumn(NULL, wp); } return NULL; @@ -5111,7 +5111,7 @@ void didset_window_options(win_T *wp, bool valid_cursor) } else { wp->w_skipcol = 0; } - check_colorcolumn(wp); + check_colorcolumn(NULL, wp); briopt_check(wp); fill_culopt_flags(NULL, wp); set_chars_option(wp, wp->w_p_fcs, kFillchars, true, NULL, 0); |