Skip to content

Commit

Permalink
fix(ui): check if win is still valid
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 3, 2023
1 parent b5f4106 commit e749e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e749e68

Please sign in to comment.