]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1825: wrong cursor position with virt text and 'linebreak' v9.0.1825
authorzeertzjq <zeertzjq@outlook.com>
Wed, 30 Aug 2023 14:55:09 +0000 (16:55 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 30 Aug 2023 14:55:09 +0000 (16:55 +0200)
commit6e55e85f92aff43c1b3cb564201440f3552d63f0
tree51bc0fb9927fe63e9c2b6696989d3fb3f5bb1d8a
parent5bbcfbc4a260bc082829311086c3a1109c40f2d3
patch 9.0.1825: wrong cursor position with virt text and 'linebreak'

Problem:  Wrong cursor position with virtual text before a whitespace
          character and 'linebreak'.
Solution: Always set "col_adj" to "size - 1" and apply 'linebreak' after
          adding the size of 'breakindent' and 'showbreak'.

closes: #12956

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/charset.c
src/testdir/dumps/Test_prop_inserts_text_before_linebreak_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_before_linebreak_2.dump [new file with mode: 0644]
src/testdir/test_textprop.vim
src/version.c