From b8cecca8c8880e4e140258a5342301f698b58cd9 Mon Sep 17 00:00:00 2001 From: Lukas Reineke Date: Wed, 20 Feb 2019 11:08:27 +0900 Subject: [PATCH] Clear the virtualtext on disable --- autoload/ale/toggle.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/ale/toggle.vim b/autoload/ale/toggle.vim index 8e642b3f..1311e527 100644 --- a/autoload/ale/toggle.vim +++ b/autoload/ale/toggle.vim @@ -13,6 +13,10 @@ function! s:DisablePostamble() abort if g:ale_set_highlights call ale#highlight#UpdateHighlights() endif + + if g:ale_virtualtext_cursor + call ale#virtualtext#Clear() + endif endfunction function! ale#toggle#Toggle() abort