mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-06 23:22:04 -07:00
Do not sort terms when building cache key
This commit is contained in:
@@ -2,7 +2,6 @@ package fzf
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"sort"
|
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -181,7 +180,6 @@ func (p *Pattern) CacheKey() string {
|
|||||||
}
|
}
|
||||||
cacheableTerms = append(cacheableTerms, string(term.origText))
|
cacheableTerms = append(cacheableTerms, string(term.origText))
|
||||||
}
|
}
|
||||||
sort.Strings(cacheableTerms)
|
|
||||||
return strings.Join(cacheableTerms, " ")
|
return strings.Join(cacheableTerms, " ")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user