summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index ffb5da8a..46b3bba6 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -218,3 +218,8 @@ augroup ALECleanupGroup
autocmd BufDelete * if exists('*ale#engine#Cleanup') | call ale#engine#Cleanup(str2nr(expand('<abuf>'))) | endif
autocmd QuitPre * call ale#events#QuitEvent(str2nr(expand('<abuf>')))
augroup END
+
+if exists('##VimSuspend')
+ autocmd VimSuspend * call ale#engine#CleanupEveryBuffer()
+end
+