vim: Fix visual line yank on newline char (#28005)
Problem: When yanking in visual line on the newline char, the next line gets yanked as well: https://github.com/user-attachments/assets/40f332dd-19f5-445f-a30f-39d50167c46f Changes: Similar to visual delete, exclude the newline char from the selection in line mode. Release Notes: - vim: Fixed visual line yank while on the newline character yanking following line
This commit is contained in:
parent
e36a2f2739
commit
ea33d78ae4
2 changed files with 36 additions and 0 deletions
|
@ -34,3 +34,9 @@
|
|||
{"Key":"shift-y"}
|
||||
{"Get":{"state":"The quick brown\nˇfox jumps over\nthe lazy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"fox jumps over\nthe lazy dog\n"}}
|
||||
{"Put":{"state":"The quick brown\nfox ˇjumps over\nthe lazy dog"}}
|
||||
{"Key":"shift-v"}
|
||||
{"Key":"shift-4"}
|
||||
{"Key":"shift-y"}
|
||||
{"Get":{"state":"The quick brown\nˇfox jumps over\nthe lazy dog","mode":"Normal"}}
|
||||
{"ReadRegister":{"name":"\"","value":"fox jumps over\n"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue