summaryrefslogtreecommitdiff
path: root/src/pattern.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern.go')
-rw-r--r--src/pattern.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pattern.go b/src/pattern.go
index 7e5f4289..82272af6 100644
--- a/src/pattern.go
+++ b/src/pattern.go
@@ -163,12 +163,13 @@ func parseTerms(fuzzy bool, caseMode Case, str string) []termSet {
if strings.HasPrefix(text, "!") {
inv = true
+ typ = termExact
text = text[1:]
}
if strings.HasPrefix(text, "'") {
// Flip exactness
- if fuzzy {
+ if fuzzy && !inv {
typ = termExact
text = text[1:]
} else {