summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers
diff options
context:
space:
mode:
authorkoopa1338 <sinner1991@gmail.com>2021-10-09 09:06:52 +0200
committerGitHub <noreply@github.com>2021-10-09 09:06:52 +0200
commit2dc75704b773bc9e00a59b12afb98d3960c9f25b (patch)
tree0567dd67c3465bb582b0c1ef86ff67c79525cfc4 /lua/telescope/pickers
parentdea927d0eb22255632dd82d2efff1a68d621c871 (diff)
fix: scroll_strategy limit (#1320)
Diffstat (limited to 'lua/telescope/pickers')
-rw-r--r--lua/telescope/pickers/scroller.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/pickers/scroller.lua b/lua/telescope/pickers/scroller.lua
index 814ac74..38882b1 100644
--- a/lua/telescope/pickers/scroller.lua
+++ b/lua/telescope/pickers/scroller.lua
@@ -29,7 +29,7 @@ local scroll_calculators = {
return function(max_results, num_results, row)
local start, finish = range_fn(max_results, num_results)
- if row >= finish then
+ if row >= finish and finish > 0 then
return finish - 1
elseif row < start then
return start