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:
committed by
Christian Brabandt
parent
0ffc17aa47
commit
8fc6a1dae0
@@ -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.
|
||||
|
Reference in New Issue
Block a user