While extending the tests for vi mode, I noticed that c$ (replace text until end of line with newly entered text) and cc (replace the entire line with newly entered text) don't actually cut the removed text. This fixed that. Verified with vim 9.1 that it should be cut a.k.a. pastable.
Test:
setup:
$ cargo run --example demo -- --vi
enter a text (optionally use + to enter multiple line)
press to enter vi normal mode and use the arrow keys to navigate somewhere in the line
actual test:
both "cc p" and "c$ p" should now leave the text unchanged by cutting out text and pasting it back again (, but moving the cursor to the end).
While extending the tests for vi mode, I noticed that c$ (replace text until end of line with newly entered text) and cc (replace the entire line with newly entered text) don't actually cut the removed text. This fixed that. Verified with vim 9.1 that it should be cut a.k.a. pastable.
Test:
setup:
actual test:
both "cc p" and "c$ p" should now leave the text unchanged by cutting out text and pasting it back again (, but moving the cursor to the end).