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:
committed by
Christian Brabandt
parent
5e7a6a4a10
commit
a441a3eaab
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user