vim: Fix d shift-g not deleting until EOD if soft-wrap is on (#20160)
This previously didn't work: `d G` would delete to the end of the "first of the soft-wrapped lines" of the last line. To fix it, we special case the delete behavior for `shift-g`, which is what Neovim also seems to do. Release Notes: - Fixed `d G` in Vim mode not deleting until the actual end of the document if soft-wrap is turned on.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{"SetOption":{"value":"wrap"}}
|
||||
{"SetOption":{"value":"columns=12"}}
|
||||
{"Put":{"state":"aaˇaaaaaaaaaaaaaaaaaa\nbbbbbbbbbbbbbbbbbbbb\ncccccccccccccccccccc"}}
|
||||
{"Key":"d"}
|
||||
{"Key":"shift-g"}
|
||||
{"Key":"i"}
|
||||
{"Key":"z"}
|
||||
{"Key":"z"}
|
||||
{"Key":"z"}
|
||||
{"Get":{"state":"zzzˇ","mode":"Insert"}}
|
||||
Reference in New Issue
Block a user