diff options
| author | fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com> | 2021-07-03 10:54:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-03 10:54:06 +0200 |
| commit | bdd0df73a6ee424f9c77624218b4fba1e42e468c (patch) | |
| tree | bdd5bc7e80d733c11cdba3fb59468a852fc10b9e /lua/telescope/pickers.lua | |
| parent | c5a6ed16e2022e2d19936e00a8a39a97cba39f11 (diff) | |
feat: select_all, toggle_all and drop_all actions (#931)
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
