mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-16 15:23:48 -05:00
Fix change-nth
* Proper clean-up of caches * Force rerender list after the action
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user