mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.actions): pass edit commands to jump. Closes #859
This commit is contained in:
parent
18cdf766ef
commit
df0e3e3d86
1 changed files with 2 additions and 2 deletions
|
@ -561,7 +561,7 @@ M.actions = {
|
|||
local state = M.get_state(picker)
|
||||
vim.fn.chdir(state:dir())
|
||||
end,
|
||||
confirm = function(picker)
|
||||
confirm = function(picker, item, action)
|
||||
local state = M.get_state(picker)
|
||||
local item = picker:current()
|
||||
if not item then
|
||||
|
@ -574,7 +574,7 @@ M.actions = {
|
|||
end
|
||||
state:toggle(item)
|
||||
else
|
||||
picker:action("jump")
|
||||
Snacks.picker.actions.jump(picker, item, action)
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue