fix bugs related to deleting ('dge' and 'dgE' motions should also delete the letter which the cursor is currently at, and now they do)

This commit is contained in:
2025-09-06 00:02:37 +01:00
parent 76e14ea491
commit b9332bcd94
3 changed files with 29 additions and 2 deletions

View File

@@ -246,6 +246,7 @@ struct
fun yankToStart (app: app_type) =
let
val {cursorIdx, buffer, ...} = app
val buffer = LineGap.goToIdx (cursorIdx, buffer)
val high = Cursor.viDlrForDelete (buffer, cursorIdx, 1)
val buffer = LineGap.goToIdx (high, buffer)