mirror of https://github.com/folke/lazy.nvim.git
fix(ui): check if win is still valid
This commit is contained in:
parent
b5f4106892
commit
e749e68b68
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue