summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pattern.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pattern.go b/src/pattern.go
index fda5cc9a..42a341b4 100644
--- a/src/pattern.go
+++ b/src/pattern.go
@@ -227,7 +227,7 @@ func (p *Pattern) CacheKey() string {
}
cacheableTerms := []string{}
for _, termSet := range p.termSets {
- if len(termSet) == 1 && !termSet[0].inv {
+ if len(termSet) == 1 && !termSet[0].inv && (p.fuzzy || termSet[0].typ == termExact) {
cacheableTerms = append(cacheableTerms, string(termSet[0].origText))
}
}