Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clear

This commit is contained in:
w0rp
2023-01-06 19:02:35 +00:00
parent 7f070e40eb
commit 0382c9d8c1

View File

@@ -48,7 +48,7 @@ if !has_key(s:, 'has_virt_text')
endif
function! ale#virtualtext#Clear(buf) abort
if !s:has_virt_text
if !s:has_virt_text || !bufexists(str2nr(a:buf))
return
endif