mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -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
@@ -214,7 +214,7 @@ open_buffer(
|
||||
enter_buffer(curbuf);
|
||||
#ifdef FEAT_SYN_HL
|
||||
if (old_tw != curbuf->b_p_tw)
|
||||
check_colorcolumn(curwin);
|
||||
check_colorcolumn(NULL, curwin);
|
||||
#endif
|
||||
return FAIL;
|
||||
}
|
||||
@@ -1213,7 +1213,7 @@ handle_swap_exists(bufref_T *old_curbuf)
|
||||
|
||||
#ifdef FEAT_SYN_HL
|
||||
if (old_tw != curbuf->b_p_tw)
|
||||
check_colorcolumn(curwin);
|
||||
check_colorcolumn(NULL, curwin);
|
||||
#endif
|
||||
}
|
||||
// If "old_curbuf" is NULL we are in big trouble here...
|
||||
@@ -1911,7 +1911,7 @@ set_curbuf(buf_T *buf, int action)
|
||||
enter_buffer(buf);
|
||||
#ifdef FEAT_SYN_HL
|
||||
if (old_tw != curbuf->b_p_tw)
|
||||
check_colorcolumn(curwin);
|
||||
check_colorcolumn(NULL, curwin);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user