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/optionstr.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/optionstr.c')
-rw-r--r-- | src/nvim/optionstr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c index f9be1be3d2..0e63a8089d 100644 --- a/src/nvim/optionstr.c +++ b/src/nvim/optionstr.c @@ -898,7 +898,8 @@ int expand_set_clipboard(optexpand_T *args, int *numMatches, char ***matches) const char *did_set_colorcolumn(optset_T *args) { win_T *win = (win_T *)args->os_win; - return check_colorcolumn(win); + char **varp = (char **)args->os_varp; + return check_colorcolumn(*varp, varp == &win->w_p_cc ? win : NULL); } /// The 'comments' option is changed. |