fix: new oil buffers are nomodifiable during mutation processing
This commit is contained in:
parent
931453fc09
commit
d631d9fc5a
3 changed files with 43 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue