]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0572: lines disappear with wrapping virtual text after a double-width char v9.2.0572
authorHirohito Higashi <h.east.727@gmail.com>
Sun, 31 May 2026 18:43:42 +0000 (18:43 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 31 May 2026 18:43:42 +0000 (18:43 +0000)
commit09f7fc60d3d76504cf46871277e471d034776583
treed62c8bb8e3ef6865e1c6b20c460c5da90576878d
parent37089793b8343548d75b1c856d0606e7bac62387
patch 9.2.0572: lines disappear with wrapping virtual text after a double-width char

Problem:  With 'nowrap', when a line ends with a double-width character
          exactly at the window width and has wrapping "after" virtual
          text, the lines below disappear and "@@@" is shown.
Solution: Detect that the last character fills the rightmost column using
          its displayed width (win_chartabsize(), so a <Tab> or double-width
          character is handled like a single-width one), and also when it
          overflows the last column.  Also clarify in the help that "wrap"
          only takes effect with the 'wrap' option set.

fixes:   #20384
related: #12213
closes:  #20395

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/textprop.txt
src/drawline.c
src/testdir/dumps/Test_prop_with_text_after_wide_char_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_with_text_after_wide_char_2.dump [new file with mode: 0644]
src/testdir/test_textprop.vim
src/testdir/test_vim9_cmd.vim
src/userfunc.c
src/version.c