From e749e68b68b66d7f1c8284941b8cca9fd3cd9482 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 3 Jan 2023 09:13:11 +0100 Subject: [PATCH] fix(ui): check if win is still valid --- lua/lazy/view/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/view/init.lua b/lua/lazy/view/init.lua index 7a3c595..cd91c4c 100644 --- a/lua/lazy/view/init.lua +++ b/lua/lazy/view/init.lua @@ -31,7 +31,7 @@ function M.show(mode) return end - M.view = (M.view and M.view.win) and M.view or M.create() + M.view = (M.view and M.view.win and vim.api.nvim_win_is_valid(M.view.win)) and M.view or M.create() if mode then M.view.state.mode = mode end