Fix vim full line operations failing when no trailing newline (#24409)

Closes #24270

Release Notes:

- Fixed an issue where doing line-wise operations in vim mode on the
last line of a file with no trailing newline would not work properly
This commit is contained in:
Ben Kunkle
2025-02-06 17:57:24 -06:00
committed by GitHub
parent 73c487c222
commit 337b9e62d2
11 changed files with 79 additions and 17 deletions
@@ -2,9 +2,9 @@
{"Key":"ctrl-a"}
{"Get":{"state":"inline0x3ˇau32\n","mode":"Normal"}}
{"Key":"ctrl-a"}
{"Get":{"state":"inline0x3ˇbu32\n", "mode":"Normal"}}
{"Get":{"state":"inline0x3ˇbu32\n","mode":"Normal"}}
{"Key":"l"}
{"Key":"l"}
{"Key":"l"}
{"Key":"ctrl-a"}
{"Get":{"state":"inline0x3bu3ˇ3\n", "mode":"Normal"}}
{"Get":{"state":"inline0x3bu3ˇ3\n","mode":"Normal"}}