mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(explorer): confirm prompt now defaults to No
This commit is contained in:
parent
e55ae37beb
commit
f970cbb258
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ end
|
|||
---@param prompt string
|
||||
---@param fn fun()
|
||||
function M.confirm(prompt, fn)
|
||||
Snacks.picker.select({ "Yes", "No" }, { prompt = prompt }, function(_, idx)
|
||||
if idx == 1 then
|
||||
Snacks.picker.select({ "No", "Yes" }, { prompt = prompt }, function(_, idx)
|
||||
if idx == 2 then
|
||||
fn()
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue