summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-01-06 19:02:35 +0000
committerw0rp <devw0rp@gmail.com>2023-01-06 19:02:35 +0000
commit69c1dc8b5f3d215d4a0538265b2d257c2ed7a8fa (patch)
tree996424f6a5c9837920ec803caa8b16b9fc022dda
parent0f51c3b01bdafc7f8ad2ece4aacef089f952e884 (diff)
downloadale-69c1dc8b5f3d215d4a0538265b2d257c2ed7a8fa.zip
Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clear
-rw-r--r--autoload/ale/virtualtext.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/virtualtext.vim b/autoload/ale/virtualtext.vim
index 3ef82680..0f2b2173 100644
--- a/autoload/ale/virtualtext.vim
+++ b/autoload/ale/virtualtext.vim
@@ -75,7 +75,7 @@ function! ale#virtualtext#GetComment(buffer) abort
endfunction
function! ale#virtualtext#Clear(buffer) abort
- if !s:has_virt_text
+ if !s:has_virt_text || !bufexists(str2nr(a:buffer))
return
endif