fix: check bufnr is valid in diagnostics
This commit is contained in:
@@ -101,7 +101,7 @@ local function is_using_coc()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function M.update()
|
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
|
return
|
||||||
end
|
end
|
||||||
local buffer_severity
|
local buffer_severity
|
||||||
|
|||||||
Reference in New Issue
Block a user