diff options
author | w0rp <devw0rp@gmail.com> | 2023-01-06 19:02:35 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-01-06 19:02:35 +0000 |
commit | 69c1dc8b5f3d215d4a0538265b2d257c2ed7a8fa (patch) | |
tree | 996424f6a5c9837920ec803caa8b16b9fc022dda | |
parent | 0f51c3b01bdafc7f8ad2ece4aacef089f952e884 (diff) | |
download | ale-69c1dc8b5f3d215d4a0538265b2d257c2ed7a8fa.zip |
Fix #4413 - Avoid errors for invalid buffers in ale#virtualtext#Clear
-rw-r--r-- | autoload/ale/virtualtext.vim | 2 |
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 |