fix: check bufnr is valid in diagnostics
This commit is contained in:
parent
64c098d9c2
commit
5a6fd49ee5
@ -101,7 +101,7 @@ local function is_using_coc()
|
||||
end
|
||||
|
||||
function M.update()
|
||||
if not M.enable or not TreeExplorer then
|
||||
if not M.enable or not TreeExplorer or not view.is_buf_valid(view.get_bufnr()) then
|
||||
return
|
||||
end
|
||||
local buffer_severity
|
||||
|
||||
Loading…
Reference in New Issue
Block a user