vim: Fix insert before
in visual modes (#25603)
Closes #22536 Changes: - Visual and visual block: Cursor at start of selection. - Visual line: Cursor at start on line. - Uses different handling since the selection does not actually change in vline. Release Notes: - vim: Fixed insert before (`shift-i`) in visual modes.
This commit is contained in:
parent
9c7eee24bc
commit
ff0bb1f389
2 changed files with 60 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
{"Put":{"state":"heˇllo"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"i"}
|
||||
{"Key":"w"}
|
||||
{"Key":"shift-i"}
|
||||
{"Get":{"state":"ˇhello","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox ˇjumps over\nthe lazy dog"}}
|
||||
{"Key":"shift-v"}
|
||||
{"Key":"shift-i"}
|
||||
{"Get":{"state":"The quick brown\nˇfox jumps over\nthe lazy dog","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox ˇjumps over\nthe lazy dog"}}
|
||||
{"Key":"shift-v"}
|
||||
{"Key":"shift-a"}
|
||||
{"Get":{"state":"The quick brown\nfox jˇumps over\nthe lazy dog","mode":"Insert"}}
|
Loading…
Add table
Add a link
Reference in a new issue