]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol v9.0.1785
authorzeertzjq <zeertzjq@outlook.com>
Wed, 23 Aug 2023 18:58:01 +0000 (20:58 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 23 Aug 2023 18:58:01 +0000 (20:58 +0200)
commit1193951bebcff50d88403ce17dec5d3be14f131d
tree833b7f27acb6b6e7c3fc220c22f4e151208f6404
parentc51fa7bc4666baad81356b298da7a5ede410f868
patch 9.0.1785: wrong cursor position with 'showbreak' and lcs-eol

Problem:  wrong cursor position with 'showbreak' and lcs-eol
Solution: Add size of 'showbreak' before when 'listchars' "eol" is used.
          Also fix wrong cursor position with wrapping virtual text on
          empty line and 'showbreak'.

closes: #12891

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
src/charset.c
src/move.c
src/testdir/dumps/Test_cursor_position_with_showbreak_1.dump [moved from src/testdir/dumps/Test_cursor_position_with_showbreak.dump with 71% similarity]
src/testdir/dumps/Test_cursor_position_with_showbreak_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_showbreak_22.dump [new file with mode: 0644]
src/testdir/test_breakindent.vim
src/testdir/test_textprop.vim
src/version.c