]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0289: 'linebreak' may lead to wrong Visual block highlighting v9.2.0289
authorzeertzjq <zeertzjq@outlook.com>
Fri, 3 Apr 2026 09:48:49 +0000 (09:48 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 3 Apr 2026 09:48:49 +0000 (09:48 +0000)
commit23be1889d1a1212445ca8bb9cd378484d3755f79
tree0d659c4ec3202a3b3da0173a438fc0a815420598
parentaf58a9f5e9e0bf748700645d07c6262eb281d737
patch 9.2.0289: 'linebreak' may lead to wrong Visual block highlighting

Problem:  'linebreak' may lead to wrong Visual block highlighting when
          end char occupies multiple cells (after 7.4.467).
Solution: Exclude 'linebreak' from the ending column instead of setting
          'virtualedit' temporarily (zeertzjq).

fixes:  #19898
closes: #19900

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
30 files changed:
src/change.c
src/charset.c
src/cindent.c
src/drawline.c
src/drawscreen.c
src/edit.c
src/evalfunc.c
src/ex_cmds.c
src/gui_xim.c
src/indent.c
src/misc1.c
src/misc2.c
src/mouse.c
src/move.c
src/normal.c
src/ops.c
src/popupwin.c
src/proto/charset.pro
src/regexp.c
src/regexp_bt.c
src/regexp_nfa.c
src/register.c
src/search.c
src/testdir/dumps/Test_visual_block_hl_with_linebreak_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_visual_block_hl_with_linebreak_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_visual_block_hl_with_linebreak_3.dump [new file with mode: 0644]
src/testdir/dumps/Test_visual_block_hl_with_linebreak_4.dump [new file with mode: 0644]
src/testdir/test_listlbr_utf8.vim
src/version.c
src/vim.h