summaryrefslogtreecommitdiffstats
path: root/src/matcher.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-01-04 01:47:59 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-01-04 01:47:59 +0900
commit40d0a6347c65b523d60f8d7898eafc42e1e4a3b6 (patch)
treed3d3fa1f08afa69e86a68ff4f4f02025c38bc6f6 /src/matcher.go
parentbaad26a0fd0d39640ec31f98d92a8745b022f755 (diff)
Fix scan limit for --select-1 and --exit-0 options
Diffstat (limited to 'src/matcher.go')
-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))