fix: new oil buffers are nomodifiable during mutation processing

This commit is contained in:
Steven Arcangeli 2023-03-28 11:39:27 -07:00
parent 931453fc09
commit d631d9fc5a
3 changed files with 43 additions and 10 deletions

View file

@ -69,7 +69,9 @@ function Progress:close()
self.timer = nil
end
if self.winid then
vim.api.nvim_win_close(self.winid, true)
if vim.api.nvim_win_is_valid(self.winid) then
vim.api.nvim_win_close(self.winid, true)
end
self.winid = nil
end
end