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
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 1 additions and 1 deletions

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