Describe the bug
When appending text in visual block mode, if the cursor is moved before the
start of the visual block, then incorrect text is inserted.
To Reproduce
Detailed steps to reproduce the behavior:
vim --cleanExpected behavior
The following lines are expected after the edit:
aaxa
bbxb
ccxc
But the following lines are present after the edit:
aaxa
bbba
ccca
The second and third lines are not correct.
Environment (please complete the following information):
Additional details:
A test for this is already added to the Test_visual_block_mode() function in test_visual.vim.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Describe the bug
When appending text in visual block mode, if the cursor is moved before the
start of the visual block, then incorrect text is inserted.To Reproduce
Detailed steps to reproduce the behavior:
- Run
vim --clean- Add the following text to an empty buffer.
aaa
bbb
ccc- Execute the following commands:
gg$2jAx