summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-09-18 17:46:45 +0100
committerGitHub <noreply@github.com>2018-09-18 17:46:45 +0100
commit993f02ad80bf76c49557b181626bc48a7d4769f1 (patch)
treea211e517297d74fdb64ff52fe92bde1714675010 /plugin/ale.vim
parent213a901ccd237903c7decb00696418e1abc930c9 (diff)
parentf09e6d638fc012b3bdccccdc3496e135fbd7df87 (diff)
downloadale-993f02ad80bf76c49557b181626bc48a7d4769f1.zip
Merge pull request #1928 from felipesere/master
To avoid blocking build tools, suspend ALE when suspending vim
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim4
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