fix(picker.actions): current item

This commit is contained in:
Folke Lemaitre 2025-01-14 07:49:07 +01:00
parent 792ffdd702
commit 076feecf20
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -79,8 +79,8 @@ function M.resolve(action, picker, name)
} or action
---@cast action snacks.picker.Action
return {
action = function(_, item)
return action.action(picker, item)
action = function()
return action.action(picker, picker:current())
end,
desc = action.desc,
}