fix failing test for 'dge' motion: if the deletion takes us to a newliune that follows a non-newline-character, we should decrement the cursor to be on the non-newline-character

This commit is contained in:
2025-10-14 12:31:18 +01:00
parent d73959ce9b
commit 999a35cb8b
3 changed files with 22 additions and 4 deletions

View File

@@ -2387,7 +2387,7 @@ struct
(* assert *)
val actualString = LineGap.toString buffer
val expectedString = "hell world\n"
val expectedString = "hell\n"
val expectedCursorIdx = String.size expectedString - 2
in
Expect.isTrue