summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/matcher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/matcher.go b/src/matcher.go
index 363b07fd..ad782bdf 100644
--- a/src/matcher.go
+++ b/src/matcher.go
@@ -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))