ZIm/crates/vim/test_data/test_increment_wrapping.json
hekmyr c3f47b8040
vim: Fix increment/decrement command (#17644)
Improving vim increment and decrement command.

Closes: #16672

## Release Notes:

- vim: Improved edge-case handling for ctrl-a/ctrl-x

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2024-09-18 18:28:31 -06:00

13 lines
466 B
JSON

{"Put":{"state":"1844674407370955161ˇ9\n"}}
{"Key":"ctrl-a"}
{"Get":{"state":"1844674407370955161ˇ5\n","mode":"Normal"}}
{"Key":"ctrl-a"}
{"Get":{"state":"-1844674407370955161ˇ5\n", "mode":"Normal"}}
{"Key":"ctrl-a"}
{"Get":{"state":"-1844674407370955161ˇ4\n", "mode":"Normal"}}
{"Key":"3"}
{"Key":"ctrl-x"}
{"Get":{"state":"1844674407370955161ˇ4\n", "mode":"Normal"}}
{"Key":"2"}
{"Key":"ctrl-a"}
{"Get":{"state":"-1844674407370955161ˇ5\n", "mode":"Normal"}}