diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2018-12-19 23:05:29 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2018-12-19 23:05:29 +0900 |
commit | 5624a892311e96ffe019786c5507929d9427ad0f (patch) | |
tree | 89441a7b04f50989937935bb01071c80ee6de4ff /src/matcher.go | |
parent | 63c42b14f24c7b82515cf13d6372dd302f5d11a5 (diff) |
Inverse-only matches should not reorder the remaining results
Fix #1458
Diffstat (limited to 'src/matcher.go')
-rw-r--r-- | src/matcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
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}) } |