summaryrefslogtreecommitdiff
path: root/src/pattern.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-02-01 02:05:58 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-02-01 02:06:56 +0900
commitdd1f26522c965612cb4f55b44e700b8b85868b27 (patch)
treebf1199ad58f51393612697e8a9e5d6c85e82b250 /src/pattern.go
parent712b7b218815fe2368884515852327401311a215 (diff)
downloadfzf-dd1f26522c965612cb4f55b44e700b8b85868b27.tar.gz
Fix caching scheme when --exact is set and '-prefix is used
Diffstat (limited to 'src/pattern.go')
-rw-r--r--src/pattern.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern.go b/src/pattern.go
index 731104f8..4f646607 100644
--- a/src/pattern.go
+++ b/src/pattern.go
@@ -101,7 +101,7 @@ func BuildPattern(fuzzy bool, fuzzyAlgo algo.Algo, extended bool, caseMode Case,
for idx, term := range termSet {
// If the query contains inverse search terms or OR operators,
// we cannot cache the search scope
- if !cacheable || idx > 0 || term.inv {
+ if !cacheable || idx > 0 || term.inv || !fuzzy && term.typ != termExact {
cacheable = false
break Loop
}