diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-17 17:24:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 17:24:03 +0800 |
commit | 54db75e995f82a11f5d2a223d816d2ea0bd0467e (patch) | |
tree | b6413e4394c5b96a380fd1860de09f71396bace2 /src/nvim/terminal.c | |
parent | c52dfb6e840827a2de713e40ea8506491ec7ce0b (diff) | |
download | rneovim-54db75e995f82a11f5d2a223d816d2ea0bd0467e.tar.gz rneovim-54db75e995f82a11f5d2a223d816d2ea0bd0467e.tar.bz2 rneovim-54db75e995f82a11f5d2a223d816d2ea0bd0467e.zip |
refactor(drawline): integrate terminal hl with eol loop (#27893)
There is no test for using 'cursorline' in Normal mode in a terminal
buffer, so add a test and fix 'cursorcolumn' remaining when entering
Terminal mode.
Also move synIDattr() tests to ui/highlight_spec.lua.
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r-- | src/nvim/terminal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index edde7ff57a..3734d55a5b 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -543,6 +543,9 @@ bool terminal_enter(void) } else { curwin->w_p_cul = false; } + if (curwin->w_p_cuc) { + redraw_later(curwin, UPD_SOME_VALID); + } curwin->w_p_cuc = false; curwin->w_p_so = 0; curwin->w_p_siso = 0; |