Remove duplicate code

This commit is contained in:
onee-only authored and Junegunn Choi committed 2024-03-05 11:03:56 +09:00
1 parent 7444eff6d4
commit 8061a2f108
2 files changed
+7 -10

No files matched your search

+1 -2
View File
@@ -209,11 +209,10 @@ func parseTerms(fuzzy bool, caseMode Case, normalize bool, str string) []termSet
// Flip exactness
if fuzzy && !inv {
typ = termExact
text = text[1:]
} else {
typ = termFuzzy
text = text[1:]
}
text = text[1:]
} else if strings.HasPrefix(text, "^") {
if typ == termSuffix {
typ = termEqual