mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user