mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
Fix cache being immediately cleared on reload-sync
This commit is contained in:
parent
62c7f59b94
commit
924ffb5a35
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user