From 5624a892311e96ffe019786c5507929d9427ad0f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 19 Dec 2018 23:05:29 +0900 Subject: Inverse-only matches should not reorder the remaining results Fix #1458 --- src/matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/matcher.go') diff --git a/src/matcher.go b/src/matcher.go index c29f2b6d..3c5dec09 100644 --- a/src/matcher.go +++ b/src/matcher.go @@ -230,5 +230,5 @@ func (m *Matcher) Reset(chunks []*Chunk, patternRunes []rune, cancel bool, final } else { event = reqRetry } - m.reqBox.Set(event, MatchRequest{chunks, pattern, final, sort}) + m.reqBox.Set(event, MatchRequest{chunks, pattern, final, sort && pattern.sortable}) } -- cgit v1.2.3