}
#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.
set updatecount&
endfunc
+" Test Visual highlight with cursor at end of screen line and 'showbreak'
+func Test_visual_hl_with_showbreak()
+ CheckScreendump
+
+ let lines =<< trim END
+ setlocal showbreak=+
+ call setline(1, repeat('a', &columns + 10))
+ normal g$v4lo
+ END
+ call writefile(lines, 'XTest_visual_sbr', 'D')
+
+ let buf = RunVimInTerminal('-S XTest_visual_sbr', {'rows': 6, 'cols': 50})
+ call VerifyScreenDump(buf, 'Test_visual_hl_with_showbreak', {})
+
+ " clean up
+ call term_sendkeys(buf, "\<Esc>")
+ call StopVimInTerminal(buf)
+endfunc
" vim: shiftwidth=2 sts=2 expandtab