feat: select_all, toggle_all and drop_all actions (#931)

This commit is contained in:
fdschmidt93
2021-07-03 10:54:06 +02:00
committed by GitHub
parent c5a6ed16e2
commit bdd0df73a6
5 changed files with 219 additions and 4 deletions

View File

@@ -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