From 4a5142c60b1e833425a19de744b48ad1753f0543 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 5 Jan 2015 02:32:18 +0900 Subject: [PATCH] Do not sort terms when building cache key --- src/pattern.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pattern.go b/src/pattern.go index 533aa59f..7c27f52f 100644 --- a/src/pattern.go +++ b/src/pattern.go @@ -2,7 +2,6 @@ package fzf import ( "regexp" - "sort" "strings" ) @@ -181,7 +180,6 @@ func (p *Pattern) CacheKey() string { } cacheableTerms = append(cacheableTerms, string(term.origText)) } - sort.Strings(cacheableTerms) return strings.Join(cacheableTerms, " ") }