Do not sort terms when building cache key

This commit is contained in:
Junegunn Choi 2015-01-05 02:32:18 +09:00
parent ea25e9674f
commit 4a5142c60b

View File

@ -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, " ")
} }