fix failing test for 'd$' motion, which means completing tests for 'd$' motion too

This commit is contained in:
2025-10-16 12:07:27 +01:00
parent f804a2a9fc
commit 7676556513
3 changed files with 4 additions and 2 deletions

View File

@@ -445,6 +445,10 @@ struct
* after having performed the deletion. *)
val buffer = LineGap.goToIdx (lineStart, buffer)
val cursorIdx = Cursor.viDlr (buffer, lineStart, 1)
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val cursorIdx =
if Cursor.isOnNewlineAfterChr (buffer, cursorIdx) then cursorIdx - 1
else cursorIdx
in
finishAfterDeletingBuffer (app, cursorIdx, buffer, time, initialMsg)
end