diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index 36edb48c..888120fe 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -224,4 +224,8 @@ augroup ALECleanupGroup " Clean up buffers automatically when they are unloaded. autocmd BufDelete * if exists('*ale#engine#Cleanup') | call ale#engine#Cleanup(str2nr(expand('<abuf>'))) | endif autocmd QuitPre * call ale#events#QuitEvent(str2nr(expand('<abuf>'))) + + if exists('##VimSuspend') + autocmd VimSuspend * if exists('*ale#engine#CleanupEveryBuffer') | call ale#engine#CleanupEveryBuffer() | endif + endif augroup END |