]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0601: Wrong cursor position with 'breakindent' when wide char doesn't fit v9.1.0601
authorzeertzjq <zeertzjq@outlook.com>
Thu, 18 Jul 2024 19:13:31 +0000 (21:13 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 18 Jul 2024 19:13:31 +0000 (21:13 +0200)
commitb5d6b5caac752fe15856e37fd3abc5459292d4b8
treefaf7fb69cf2330b4909187f3a5187b513c12625a
parent99984fc58abf8dd5dac76c80635a724a94824e69
patch 9.1.0601: Wrong cursor position with 'breakindent' when wide char doesn't fit

Problem:  Wrong cursor position with 'breakindent' when a double-width
          character doesn't fit in a screen line (mikoto2000)
Solution: Include the width of the 'breakindent' properly.
          (zeertzjq)

fixes: #15289
closes: #15290

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/charset.c
src/testdir/dumps/Test_breakindent_with_double_width_wrap_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_before_double_width_wrap_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_before_double_width_wrap_3.dump [new file with mode: 0644]
src/testdir/test_breakindent.vim
src/testdir/test_listlbr_utf8.vim
src/testdir/test_textprop.vim
src/version.c