From 40d0a6347c65b523d60f8d7898eafc42e1e4a3b6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 4 Jan 2015 01:47:59 +0900 Subject: Fix scan limit for --select-1 and --exit-0 options --- src/matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/matcher.go') 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)) -- cgit v1.2.3