Fix scan limit for --select-1 and --exit-0 options
This commit is contained in:
parent
baad26a0fd
commit
40d0a6347c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user