diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-20 18:12:54 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-20 18:12:54 +0200 |
commit | 8fc6a1dae07aa63faa6bfe6ed93888635745830c (patch) | |
tree | 4324dfaf69a1081379f8cd4b5b8076887a99a586 /src/drawline.c | |
parent | 0ffc17aa479867f6f3ee14a46cf71352f126b5ba (diff) |
patch 9.0.1759: Visual highlight not working with cursor at end of screen linev9.0.1759
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>
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drawline.c b/src/drawline.c index 0be071876f..88d72cedd5 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -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. |