move buffer around when calling 'SearchList.buildRange'

This commit is contained in:
2025-09-30 05:40:57 +01:00
parent e03eecf940
commit 45fbd85183
4 changed files with 18 additions and 15 deletions

View File

@@ -242,9 +242,9 @@ struct
SOME nfa =>
Nfa.getMatchesInRange
(#idx buffer, finishIdx, buffer : LineGap.t, nfa)
| NONE => PersistentVector.empty
| NONE => (buffer, PersistentVector.empty)
else
PersistentVector.empty
(buffer, PersistentVector.empty)
fun nextMatch (cursorIdx, searchList, count) = raise Fail "todo: reimplement"