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

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

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)