mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(bufdelete): opts.wipe. See #38
This commit is contained in:
parent
d2f4f1937e
commit
0efbb93e0a
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ function M.delete(opts)
|
|||
end)
|
||||
end
|
||||
if vim.api.nvim_buf_is_valid(buf) then
|
||||
pcall(vim.cmd, opts.wipe and "bwipeout! " or "bdelete! " .. buf)
|
||||
pcall(vim.cmd, (opts.wipe and "bwipeout! " or "bdelete! ") .. buf)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue