pass correct variable as argument ('startIdx' instead of 'cursorIdx')

This commit is contained in:
2025-08-04 10:46:24 +01:00
parent 1dc77e629e
commit 229bf59f5d

View File

@@ -538,7 +538,7 @@ struct
val buffer = LineGap.goToIdx (startIdx, buffer)
in
Finish.buildTextAndClear (app, buffer, cursorIdx, searchList)
Finish.buildTextAndClear (app, buffer, startIdx, searchList)
end
fun helpDeleteLineBack (app, buffer, low, high, count) =
@@ -569,7 +569,6 @@ struct
fun deleteLineBack (app: app_type, count) =
let
val _ = raise Empty
val {buffer, cursorIdx, ...} = app
val low = Cursor.vi0 (buffer, cursorIdx)
val high = Cursor.viDlr (buffer, cursorIdx, 1) + 1