fix(ui): properly cleanup on `:quit`. Fixes #1385

This commit is contained in:
Folke Lemaitre 2024-03-26 20:30:12 +01:00
parent 107719d31e
commit 79e2e85934
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ function M:init(opts)
}
self:mount()
self:on_key(ViewConfig.keys.close, self.close)
self:on({ "BufDelete", "BufHidden" }, self.close, { once = false })
self:on({ "WinLeave", "BufDelete", "BufHidden" }, self.close, { once = false })
return self
end