]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1792: problem with gj/gk/gM and virtual text v9.0.1792
authorzeertzjq <zeertzjq@outlook.com>
Sun, 27 Aug 2023 09:17:39 +0000 (11:17 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 27 Aug 2023 09:17:39 +0000 (11:17 +0200)
commitd809c0a90387a23aed21ba37d0b65332fb5dafe7
tree2d1e407ab6d503b26fdd1adce5a3b86a4e5c7156
parent58f39d89a8adff51ab04893d1fd28e3767979f9f
patch 9.0.1792: problem with gj/gk/gM and virtual text

Problem:  Normal mode "gM", "gj", "gk" commands behave incorrectly with
          virtual text.
Solution: Use linetabsize() instead of linetabsize_str().

closes: #12909

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
12 files changed:
src/misc2.c
src/normal.c
src/testdir/dumps/Test_prop_inserts_text_normal_gM.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_normal_gj_gk_1.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_normal_gj_gk_2.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_normal_gj_gk_3.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_normal_gj_gk_4.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_normal_gj_gk_5.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_normal_gj_gk_6.dump [new file with mode: 0644]
src/testdir/dumps/Test_prop_inserts_text_normal_gj_gk_7.dump [new file with mode: 0644]
src/testdir/test_textprop.vim
src/version.c