ZIm/crates/vim/test_data/test_wrapped_delete_end_document.json
Thorsten Ball 7fb9549098
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.
2024-11-05 14:47:14 +01:00

10 lines
275 B
JSON

{"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"}}