mirror of https://github.com/dense-analysis/ale
Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clear
This commit is contained in:
parent
7f070e40eb
commit
0382c9d8c1
|
@ -48,7 +48,7 @@ if !has_key(s:, 'has_virt_text')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! ale#virtualtext#Clear(buf) abort
|
function! ale#virtualtext#Clear(buf) abort
|
||||||
if !s:has_virt_text
|
if !s:has_virt_text || !bufexists(str2nr(a:buf))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue