From bdd0df73a6ee424f9c77624218b4fba1e42e468c Mon Sep 17 00:00:00 2001 From: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com> Date: Sat, 3 Jul 2021 10:54:06 +0200 Subject: feat: select_all, toggle_all and drop_all actions (#931) --- lua/telescope/pickers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/telescope/pickers.lua') diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index e4c73e2..a60d2df 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -264,7 +264,7 @@ function Picker:can_select_row(row) if self.sorting_strategy == 'ascending' then return row <= self.manager:num_results() else - return row <= self.max_results and row >= self.max_results - self.manager:num_results() + return row >= 0 and row <= self.max_results and row >= self.max_results - self.manager:num_results() end end -- cgit v1.2.3