diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-30 16:55:09 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-30 16:55:09 +0200 |
commit | 6e55e85f92aff43c1b3cb564201440f3552d63f0 (patch) | |
tree | 51bc0fb9927fe63e9c2b6696989d3fb3f5bb1d8a /src/testdir/dumps | |
parent | 5bbcfbc4a260bc082829311086c3a1109c40f2d3 (diff) |
patch 9.0.1825: wrong cursor position with virt text and 'linebreak'v9.0.1825
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>
Diffstat (limited to 'src/testdir/dumps')
-rw-r--r-- | src/testdir/dumps/Test_prop_inserts_text_before_linebreak_1.dump | 6 | ||||
-rw-r--r-- | src/testdir/dumps/Test_prop_inserts_text_before_linebreak_2.dump | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/dumps/Test_prop_inserts_text_before_linebreak_1.dump b/src/testdir/dumps/Test_prop_inserts_text_before_linebreak_1.dump new file mode 100644 index 0000000000..2009f23e8b --- /dev/null +++ b/src/testdir/dumps/Test_prop_inserts_text_before_linebreak_1.dump @@ -0,0 +1,6 @@ +|a+0&#ffffff0@49 +| @1|++0#4040ff13&|b+0#e000e06&@9| +0#0000000&@36 +@2|++0#4040ff13&|c+0#0000000&@43>c| @1 +|~+0#4040ff13&| @48 +|~| @48 +| +0#0000000&@31|1|,|9|6|-|1|4|8| @5|A|l@1| diff --git a/src/testdir/dumps/Test_prop_inserts_text_before_linebreak_2.dump b/src/testdir/dumps/Test_prop_inserts_text_before_linebreak_2.dump new file mode 100644 index 0000000000..2d8bc50c07 --- /dev/null +++ b/src/testdir/dumps/Test_prop_inserts_text_before_linebreak_2.dump @@ -0,0 +1,6 @@ +|a+0&#ffffff0@44|b+0#e000e06&@4 +| +0#0000000&@1|++0#4040ff13&|b+0#e000e06&@4| +0#0000000&@41 +@2|++0#4040ff13&|c+0#0000000&@43>c| @1 +|~+0#4040ff13&| @48 +|~| @48 +| +0#0000000&@31|1|,|9|1|-|1|4|8| @5|A|l@1| |