fix(picker.actions): reverse prev/next on select with a reversed list layout. Closes #1124

This commit is contained in:
Folke Lemaitre 2025-02-13 11:55:36 +01:00
parent 57d795fc43
commit eae55e7ca3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -463,14 +463,14 @@ end
--- and moves the cursor to the next item.
function M.select_and_next(picker)
picker.list:select()
M.list_down(picker)
picker.list:_move(vim.v.count1)
end
--- Toggles the selection of the current item,
--- and moves the cursor to the prev item.
function M.select_and_prev(picker)
picker.list:select()
M.list_up(picker)
picker.list:_move(-vim.v.count1)
end
--- Selects all items in the list.