mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clear
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user