No need to cache the result in filtering mode (--filter)

This commit is contained in:
Junegunn Choi committed 2016-08-20 02:06:57 +09:00
1 parent 827a83efbc
commit f8fdf9618a
3 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ func Run(opts *Options) {
}
patternBuilder := func(runes []rune) *Pattern {
return BuildPattern(
opts.Fuzzy, opts.Extended, opts.Case, forward,
opts.Fuzzy, opts.Extended, opts.Case, forward, opts.Filter == nil,
opts.Nth, opts.Delimiter, runes)
}
matcher := NewMatcher(patternBuilder, sort, opts.Tac, eventBox)