Clear virtualtext no matter how enabled (#4475)

When toggling ALE off, clear the virtualtext even when g:ale_virtualtext_cursor is 'all'.
This commit is contained in:
Daniel Harding 2023-03-08 17:47:58 +03:00 committed by GitHub
parent 16f5a1915b
commit 007c5b1152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ function! s:DisablePostamble() abort
call ale#highlight#UpdateHighlights() call ale#highlight#UpdateHighlights()
endif endif
if g:ale_virtualtext_cursor is# 'current' || g:ale_virtualtext_cursor == 1 if g:ale_virtualtext_cursor isnot# 'disabled' && g:ale_virtualtext_cursor != 0
call ale#virtualtext#Clear(bufnr('')) call ale#virtualtext#Clear(bufnr(''))
endif endif
endfunction endfunction