fix: check bufnr is valid in diagnostics

This commit is contained in:
kiyan 2022-02-16 08:28:51 +01:00
parent 64c098d9c2
commit 5a6fd49ee5

View File

@ -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