mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(win): dont error when augroup is already deleted
This commit is contained in:
parent
7a7f221020
commit
8c43597f10
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ function M:close(opts)
|
|||
vim.api.nvim_buf_delete(buf, { force = true })
|
||||
end
|
||||
if self.augroup then
|
||||
vim.api.nvim_del_augroup_by_id(self.augroup)
|
||||
pcall(vim.api.nvim_del_augroup_by_id, self.augroup)
|
||||
self.augroup = nil
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue