mirror of
https://github.com/neovim/neovim.git
synced 2026-07-16 22:21:30 +00:00
vim-patch:9.0.1759: Visual highlight not working with cursor at end of screen line
Problem: Visual highlight not working with cursor at end of screen line
and 'showbreak'.
Solution: Only update "vcol_prev" when drawing buffer text.
closes: vim/vim#12865
8fc6a1dae0
(cherry picked from commit 03e7d4fc85)
This commit is contained in:
committed by
github-actions[bot]
parent
016b883def
commit
c083d7ac78
@@ -2785,9 +2785,12 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
|
||||
wlv.char_attr = hl_combine_attr(wlv.line_attr_lowprio, wlv.char_attr);
|
||||
}
|
||||
|
||||
if (wlv.draw_state == WL_LINE) {
|
||||
vcol_prev = wlv.vcol;
|
||||
}
|
||||
|
||||
// Store character to be displayed.
|
||||
// Skip characters that are left of the screen for 'nowrap'.
|
||||
vcol_prev = wlv.vcol;
|
||||
if (wlv.draw_state < WL_LINE || n_skip <= 0) {
|
||||
//
|
||||
// Store the character.
|
||||
|
||||
Reference in New Issue
Block a user