Remove Offset slice from Result struct

This commit is contained in:
Junegunn Choi committed 2016-08-20 01:53:32 +09:00
1 parent 3e88849386
commit 827a83efbc
9 files changed
+55 -46

No files matched your search

+1 -1
View File
@@ -211,7 +211,7 @@ func (m *Matcher) scan(request MatchRequest) (*Merger, bool) {
partialResult := <-resultChan
partialResults[partialResult.index] = partialResult.matches
}
return NewMerger(partialResults, m.sort, m.tac), false
return NewMerger(pattern, partialResults, m.sort, m.tac), false
}
// Reset is called to interrupt/signal the ongoing search