summaryrefslogtreecommitdiff
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-13 12:45:01 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-13 12:45:01 +0900
commitba0935c71f5507958056201ddad2fc48674a586d (patch)
tree1fd1e98765cb4ef61dfb5d83de2876bba79c9377 /src/core.go
parentd83eb2800a09d86e17c0339d86bd1f22f68164a8 (diff)
downloadfzf-ba0935c71f5507958056201ddad2fc48674a586d.tar.gz
Fix change-nth
* Proper clean-up of caches * Force rerender list after the action
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go
index 35a143fe..aaf1cf0d 100644
--- a/src/core.go
+++ b/src/core.go
@@ -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