summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorLukas Reineke <lukas.reineke@protonmail.com>2019-02-20 11:08:27 +0900
committerLukas Reineke <lukas.reineke@protonmail.com>2019-02-20 11:08:27 +0900
commitb8cecca8c8880e4e140258a5342301f698b58cd9 (patch)
tree00092eb9646f17ae751d6949c1cdb7e2e10410a0 /autoload
parentfefc093e707716da755ca2c326f852495f1b56fb (diff)
downloadale-b8cecca8c8880e4e140258a5342301f698b58cd9.zip
Clear the virtualtext on disable
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/toggle.vim4
1 files changed, 4 insertions, 0 deletions
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