mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
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
a441a3eaab
Co-authored-by: Milly <milly.ca@gmail.com>
This commit is contained in:
@@ -255,7 +255,7 @@ int open_buffer(bool read_stdin, exarg_T *eap, int flags_arg)
|
||||
emsg(_("E83: Cannot allocate buffer, using other one..."));
|
||||
enter_buffer(curbuf);
|
||||
if (old_tw != curbuf->b_p_tw) {
|
||||
check_colorcolumn(curwin);
|
||||
check_colorcolumn(NULL, curwin);
|
||||
}
|
||||
return FAIL;
|
||||
}
|
||||
@@ -1029,7 +1029,7 @@ void handle_swap_exists(bufref_T *old_curbuf)
|
||||
enter_buffer(buf);
|
||||
|
||||
if (old_tw != curbuf->b_p_tw) {
|
||||
check_colorcolumn(curwin);
|
||||
check_colorcolumn(NULL, curwin);
|
||||
}
|
||||
}
|
||||
// If "old_curbuf" is NULL we are in big trouble here...
|
||||
@@ -1669,7 +1669,7 @@ void set_curbuf(buf_T *buf, int action, bool update_jumplist)
|
||||
// enter some buffer. Using the last one is hopefully OK.
|
||||
enter_buffer(valid ? buf : lastbuf);
|
||||
if (old_tw != curbuf->b_p_tw) {
|
||||
check_colorcolumn(curwin);
|
||||
check_colorcolumn(NULL, curwin);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user