From 007c5b1152f84b96d7887aac76e2d2be899b6156 Mon Sep 17 00:00:00 2001 From: Daniel Harding Date: Wed, 8 Mar 2023 17:47:58 +0300 Subject: Clear virtualtext no matter how enabled (#4475) When toggling ALE off, clear the virtualtext even when g:ale_virtualtext_cursor is 'all'. --- autoload/ale/toggle.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/toggle.vim b/autoload/ale/toggle.vim index abc53daa..8b38e5ad 100644 --- a/autoload/ale/toggle.vim +++ b/autoload/ale/toggle.vim @@ -14,7 +14,7 @@ function! s:DisablePostamble() abort call ale#highlight#UpdateHighlights() 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('')) endif endfunction -- cgit v1.2.3