mirror of
https://github.com/dense-analysis/ale.git
synced 2026-08-11 18:32:30 +08:00
Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clear
This commit is contained in:
@@ -75,7 +75,7 @@ function! ale#virtualtext#GetComment(buffer) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale#virtualtext#Clear(buffer) abort
|
function! ale#virtualtext#Clear(buffer) abort
|
||||||
if !s:has_virt_text
|
if !s:has_virt_text || !bufexists(str2nr(a:buffer))
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user