mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-03 05:32:08 -07:00
Treat $ as proper search query
When $ is the leading character in a query, it's probably not meant to be an anchor.
This commit is contained in:
@@ -175,7 +175,7 @@ func parseTerms(fuzzy bool, caseMode Case, normalize bool, str string) []termSet
|
||||
text = text[1:]
|
||||
}
|
||||
|
||||
if strings.HasSuffix(text, "$") {
|
||||
if text != "$" && strings.HasSuffix(text, "$") {
|
||||
if strings.HasSuffix(text, "\\$") {
|
||||
text = text[:len(text)-2] + "$"
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user