fix(ui): don't close on BufLeave. Fixes #561

This commit is contained in:
Folke Lemaitre 2023-02-17 21:08:46 +01:00
parent f2cc9ef6ac
commit 7339145a22
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

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