summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-10-09 15:23:18 +0200
committerGitHub <noreply@github.com>2021-10-09 15:23:18 +0200
commit50e45f86d9ff2778615d93ddc0adea0beb409684 (patch)
treee206350a7d70c92c76fabc8298673540af48f716 /lua/telescope/pickers
parentfc6a5009b4e118ba1e9c223df4134a933b808b95 (diff)
fix: scroll_strategy limit + sorting_strategy descending (#1322)
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 38882b1..8b9bbd5 100644
--- a/lua/telescope/pickers/scroller.lua
+++ b/lua/telescope/pickers/scroller.lua
@@ -67,7 +67,7 @@ scroller.create = function(scroll_strategy, sorting_strategy)
)
end
- if result >= max_results then
+ if result > max_results then
error(
string.format(
"Must never exceed max results: { result = %s, args = { %s %s %s } }",