Skip to content

Commit e749e68

Browse files
committed
fix(ui): check if win is still valid
1 parent b5f4106 commit e749e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/view/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function M.show(mode)
3131
return
3232
end
3333

34-
M.view = (M.view and M.view.win) and M.view or M.create()
34+
M.view = (M.view and M.view.win and vim.api.nvim_win_is_valid(M.view.win)) and M.view or M.create()
3535
if mode then
3636
M.view.state.mode = mode
3737
end

0 commit comments

Comments
 (0)