Do not restart matcher during reload-sync with the intermediate list

This commit is contained in:
Junegunn Choi
2026-03-14 17:19:00 +09:00
parent 9f422851fe
commit 8dbb3b352d

View File

@@ -469,7 +469,9 @@ func Run(opts *Options) (int, error) {
if heightUnknown && !deferred {
determine(!reading)
}
matcher.Reset(snapshot, input(), false, !reading, sort, snapshotRevision)
if !useSnapshot || evt == EvtReadFin {
matcher.Reset(snapshot, input(), false, !reading, sort, snapshotRevision)
}
case EvtSearchNew:
var command *commandSpec