1
0
forked from aniani/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: #12865

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
zeertzjq
2023-08-20 18:12:54 +02:00
committed by Christian Brabandt
parent 0ffc17aa47
commit 8fc6a1dae0
4 changed files with 29 additions and 1 deletions

View File

@@ -3792,9 +3792,11 @@ win_line(
}
#endif
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.