fix(picker): select_and_prev should use list_up instead of list_down (#471)

## Description

Fix the picker select_and_prev functionality.
This commit is contained in:
Linnovs 2025-01-15 14:50:42 +08:00 committed by GitHub
parent 2e8e8ca36f
commit b993be762b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ end
--- and moves the cursor to the prev item.
function M.select_and_prev(picker)
picker.list:select()
M.list_down(picker)
M.list_up(picker)
end
function M.cmd(picker, item)