mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.actions): reverse prev/next on select with a reversed list layout. Closes #1124
This commit is contained in:
parent
57d795fc43
commit
eae55e7ca3
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue