fix(win): scratch buffers were sometimes not deleted

This commit is contained in:
Folke Lemaitre 2025-10-26 20:10:17 +01:00
parent 6a132716af
commit 03872973b3
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -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