mirror of https://github.com/dense-analysis/ale
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:
parent
16f5a1915b
commit
007c5b1152
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue