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

@ -1,5 +1,10 @@
# ✅ TODO # ✅ TODO
- [x] progress bar?
- [x] options when opening file
- [x] lazy notify? not ideal when installing missing stuff
- [x] topmods?
- [ ] better merging options? - [ ] better merging options?
- [ ] especially what to do with merging of handlers? - [ ] especially what to do with merging of handlers?
- [ ] overwriting keymaps probably doesn't work - [ ] overwriting keymaps probably doesn't work

View File

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