Mercurial > vim
annotate src/testdir/dumps/Test_prop_inserts_text_visual_block_4.dump @ 34625:ad1b0609b2f8 v9.1.0201
patch 9.1.0201: gM not working correctly with virt text
Commit: https://github.com/vim/vim/commit/366c81a2005370ac738618d889ec0337397a9f96
Author: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Date: Sun Mar 24 09:46:56 2024 +0100
patch 9.1.0201: gM not working correctly with virt text
Problem: `gM` would include outer virtual text and its padding when
getting the line length used to calculate the middle of the
line, putting the cursor much closer to virtual text lines.
Solution: Exclude outer virtual text in getting the line length for
`gM`, so that virtual text doesn't influence where the cursor
is moved to (Dylan Thacker-Smith).
closes: #14262
Signed-off-by: Dylan Thacker-Smith <dylan.ah.smith@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 24 Mar 2024 10:00:07 +0100 |
parents | ccd1a35157ad |
children |
rev | line source |
---|---|
34255
ccd1a35157ad
patch 9.1.0068: Visual highlighting can still be improved
Christian Brabandt <cb@256bit.org>
parents:
34232
diff
changeset
|
1 |1+0#0000001#a8a8a8255|2|3|4|5|6|7|8+0#0000000#ffffff0|9| @50 |
ccd1a35157ad
patch 9.1.0068: Visual highlighting can still be improved
Christian Brabandt <cb@256bit.org>
parents:
34232
diff
changeset
|
2 |1+0#0000001#a8a8a8255|-+0#e000e06#ffffff0|口*&|-+&|2+0#0000001#a8a8a8255|3|4+0#0000000#ffffff0|5|6|7|8|9| @46 |
ccd1a35157ad
patch 9.1.0068: Visual highlighting can still be improved
Christian Brabandt <cb@256bit.org>
parents:
34232
diff
changeset
|
3 |1+0#0000001#a8a8a8255|2|口*0#e000e06#ffffff0|3+0#0000001#a8a8a8255|4|5|6+0#0000000#ffffff0|7|8|9| @48 |
ccd1a35157ad
patch 9.1.0068: Visual highlighting can still be improved
Christian Brabandt <cb@256bit.org>
parents:
34232
diff
changeset
|
4 |1+0#0000001#a8a8a8255|2|3|4|5|6>7+0#0000000#ffffff0|8|9| @50 |
32838
eaf22d1df3c1
patch 9.0.1731: blockwise Visual highlight not working with virtual text
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 |~+0#4040ff13&| @58 |
32872
7a1a9ce831c3
patch 9.0.1745: Missing test coverage for blockwise Visual highlight
Christian Brabandt <cb@256bit.org>
parents:
32838
diff
changeset
|
6 |-+2#0000000&@1| |V|I|S|U|A|L| |B|L|O|C|K| |-@1| +0&&@13|4|x|7| @6|4|,|7| @10|A|l@1| |