m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 15:23:48 -05:00

Fix cache being immediately cleared on reload-sync

This commit is contained in:
Junegunn Choi
2022-12-31 09:33:23 +09:00
parent 62c7f59b94
commit 924ffb5a35

View File

@@ -293,7 +293,7 @@ func Run(opts *Options, version string, revision string) {
if heightUnknown && !deferred {
determine(!reading)
}
reset := clearCache()
reset := !useSnapshot && clearCache()
matcher.Reset(snapshot, input(reset), false, !reading, sort, reset)
case EvtSearchNew:
@@ -318,7 +318,7 @@ func Run(opts *Options, version string, revision string) {
if !useSnapshot {
snapshot, _ = chunkList.Snapshot()
}
reset := clearCache()
reset := !useSnapshot && clearCache()
matcher.Reset(snapshot, input(reset), true, !reading, sort, reset)
delay = false