Fix change-nth
Some checks are pending
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run

* Proper clean-up of caches
* Force rerender list after the action
This commit is contained in:
Junegunn Choi
2025-01-13 12:45:01 +09:00
parent d83eb2800a
commit ba0935c71f
6 changed files with 36 additions and 9 deletions

View File

@@ -379,7 +379,8 @@ func Run(opts *Options) (int, error) {
// Change nth and clear caches
nth = *val.nth
patternCache = make(map[string]*Pattern)
inputRevision.bumpMajor()
cache.Clear()
inputRevision.bumpMinor()
}
if command != nil {
useSnapshot = val.sync