progress implementing help-prev-match for vector

This commit is contained in:
2025-10-08 10:27:19 +01:00
parent 3b823d7ae6
commit 0de7a9278a
5 changed files with 82 additions and 17 deletions

View File

@@ -778,7 +778,8 @@ struct
fun deleteToPrevMatch (app: app_type, count, time) =
let
val {cursorIdx, searchList, ...} = app
val newCursorIdx = SearchList.prevMatch (cursorIdx, searchList, count)
val newCursorIdx =
PersistentVector.prevMatch (cursorIdx, searchList, count)
in
if newCursorIdx = ~1 orelse newCursorIdx >= cursorIdx then
NormalFinish.clearMode app