mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(win): scratch buffers were sometimes not deleted
This commit is contained in:
parent
6a132716af
commit
03872973b3
1 changed files with 3 additions and 1 deletions
|
|
@ -534,7 +534,9 @@ function M:close(opts)
|
|||
self:on_close()
|
||||
|
||||
self.win = nil
|
||||
self.scratch_buf = nil
|
||||
if scratch_buf then
|
||||
self.scratch_buf = nil
|
||||
end
|
||||
if buf then
|
||||
self.buf = nil
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue