feat(picker.actions): cmd action now always allows to edit the command. Closes #1033
Some checks failed
CI / ci (push) Failing after 0s

This commit is contained in:
Folke Lemaitre 2025-02-09 17:34:54 +01:00
parent ed8f416b30
commit a17788539a
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -477,11 +477,7 @@ function M.cmd(picker, item)
picker:close()
if item and item.cmd then
vim.schedule(function()
if item.command and (item.command.nargs ~= "0") then
vim.api.nvim_input(":" .. item.cmd .. " ")
else
vim.cmd(item.cmd)
end
vim.api.nvim_input(":" .. item.cmd)
end)
end
end