aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-24 06:23:00 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-10-24 06:56:12 +0800
commit5436d9b3c6c537b243ea6af4f1acc143bf94de1c (patch)
treef24f7e4da14be6d40ec609b1e6c1b909a831f18e /src/nvim/buffer.c
parent3d2aca83de7f57ad0ba1c67acb87e55876569d0a (diff)
downloadrneovim-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/buffer.c')
-rw-r--r--src/nvim/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index ce47705aa6..2142b5b298 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -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);
}
}