mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-16 23:33:39 -05:00
Fix cache being immediately cleared on reload-sync
This commit is contained in:
@@ -293,7 +293,7 @@ func Run(opts *Options, version string, revision string) {
|
|||||||
if heightUnknown && !deferred {
|
if heightUnknown && !deferred {
|
||||||
determine(!reading)
|
determine(!reading)
|
||||||
}
|
}
|
||||||
reset := clearCache()
|
reset := !useSnapshot && clearCache()
|
||||||
matcher.Reset(snapshot, input(reset), false, !reading, sort, reset)
|
matcher.Reset(snapshot, input(reset), false, !reading, sort, reset)
|
||||||
|
|
||||||
case EvtSearchNew:
|
case EvtSearchNew:
|
||||||
@@ -318,7 +318,7 @@ func Run(opts *Options, version string, revision string) {
|
|||||||
if !useSnapshot {
|
if !useSnapshot {
|
||||||
snapshot, _ = chunkList.Snapshot()
|
snapshot, _ = chunkList.Snapshot()
|
||||||
}
|
}
|
||||||
reset := clearCache()
|
reset := !useSnapshot && clearCache()
|
||||||
matcher.Reset(snapshot, input(reset), true, !reading, sort, reset)
|
matcher.Reset(snapshot, input(reset), true, !reading, sort, reset)
|
||||||
delay = false
|
delay = false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user