diff options
| -rw-r--r-- | lua/telescope/pickers/scroller.lua | 2 |
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 |
