Fix scan limit for --select-1 and --exit-0 options
This commit is contained in:
1 parent
baad26a0fd
commit
40d0a6347c
1 file changed
+1
-1
+1
-1
@@ -150,7 +150,7 @@ func (m *Matcher) scan(request MatchRequest, limit int) ([]*Item, bool) {
|
||||
if cancelled.Get() {
|
||||
return
|
||||
}
|
||||
countChan <- len(sliceMatches)
|
||||
countChan <- len(matches)
|
||||
}
|
||||
if !empty && m.sort {
|
||||
sort.Sort(ByRelevance(sliceMatches))
|
||||
|
||||
Reference in new issue
Block a user