summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-12-19 15:35:57 +0000
committerw0rp <devw0rp@gmail.com>2017-12-19 15:35:57 +0000
commitf74e22b938798a6bd64e6fa55754c3e7e28285dd (patch)
treebec21085182ce55e0666a92f1593739f0b2a0dc7 /plugin/ale.vim
parentd2bea5c3101e9f198492efb8ca294e63e62415a4 (diff)
downloadale-f74e22b938798a6bd64e6fa55754c3e7e28285dd.zip
Clean up ALE linter buffer data when buffers are deleted, not unloaded
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index a07915f7..2f613b53 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -285,7 +285,7 @@ call ale#toggle#InitAuGroups()
augroup ALECleanupGroup
autocmd!
" Clean up buffers automatically when they are unloaded.
- autocmd BufUnload * call ale#engine#Cleanup(str2nr(expand('<abuf>')))
+ autocmd BufDelete * call ale#engine#Cleanup(str2nr(expand('<abuf>')))
autocmd QuitPre * call ale#events#QuitEvent(str2nr(expand('<abuf>')))
augroup END