From 79e2e8593410f199b85f5d61a83704a16169282f Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 26 Mar 2024 20:30:12 +0100 Subject: [PATCH] fix(ui): properly cleanup on `:quit`. Fixes #1385 --- lua/lazy/view/float.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/view/float.lua b/lua/lazy/view/float.lua index 3e8938f..808f09c 100644 --- a/lua/lazy/view/float.lua +++ b/lua/lazy/view/float.lua @@ -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