diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-04 01:47:59 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-01-04 01:47:59 +0900 |
commit | 40d0a6347c65b523d60f8d7898eafc42e1e4a3b6 (patch) | |
tree | d3d3fa1f08afa69e86a68ff4f4f02025c38bc6f6 /src | |
parent | baad26a0fd0d39640ec31f98d92a8745b022f755 (diff) |
Fix scan limit for --select-1 and --exit-0 options
Diffstat (limited to 'src')
-rw-r--r-- | src/matcher.go | 2 |
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)) |