summaryrefslogtreecommitdiffstats
path: root/src/core.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-08-20 02:06:57 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-08-20 02:06:57 +0900
commitf8fdf9618adf831b614a9b69e90eca53b9e37a28 (patch)
treec08b729b15dc157eb3fe3df1da3b434885df4ec8 /src/core.go
parent827a83efbc178390ddd8aaa36d26bce593d0d58f (diff)
No need to cache the result in filtering mode (--filter)
Diffstat (limited to 'src/core.go')
-rw-r--r--src/core.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.go b/src/core.go
index 78dddc02..70f2da51 100644
--- a/src/core.go
+++ b/src/core.go
@@ -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)