0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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: #15914

Signed-off-by: Milly <milly.ca@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Milly
2024-10-22 22:43:01 +02:00
committed by Christian Brabandt
parent 5e7a6a4a10
commit a441a3eaab
7 changed files with 36 additions and 15 deletions

View File

@@ -1478,9 +1478,11 @@ did_set_cinoptions(optset_T *args UNUSED)
* The 'colorcolumn' option is changed.
*/
char *
did_set_colorcolumn(optset_T *args UNUSED)
did_set_colorcolumn(optset_T *args)
{
return check_colorcolumn(curwin);
char_u **varp = (char_u **)args->os_varp;
return check_colorcolumn(*varp, varp == &curwin->w_p_cc ? curwin : NULL);
}
#endif