From ba0935c71f5507958056201ddad2fc48674a586d Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 13 Jan 2025 12:45:01 +0900 Subject: Fix change-nth * Proper clean-up of caches * Force rerender list after the action --- src/core.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core.go') 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 -- cgit v1.2.3