fix(ui): possible error during initial install

This commit is contained in:
Folke Lemaitre 2023-01-11 17:13:03 +01:00
parent 41c7a6a6c0
commit a64623899d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 6 additions and 1 deletions

View file

@ -115,7 +115,7 @@ function M:mount()
vim.api.nvim_create_autocmd("VimResized", {
callback = function()
if not self.win then
if not (self.win and vim.api.nvim_win_is_valid(self.win)) then
return true
end
self:layout()