diff options
author | w0rp <devw0rp@gmail.com> | 2018-06-19 20:12:33 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-06-19 20:12:33 +0100 |
commit | e306e5cdb06ede621de529849e54f11f0e8069fe (patch) | |
tree | c3ca699776ccd54633770fc52656125f57e694da /plugin | |
parent | b8a1038a411e266c07a7e91c6561126680854bef (diff) | |
download | ale-e306e5cdb06ede621de529849e54f11f0e8069fe.zip |
Avoid calling ALE cleanup code if ALE never tried to check a buffer
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/ale.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim index bea5a49e..d9f1216e 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -228,7 +228,7 @@ call ale#autocmd#InitAuGroups() augroup ALECleanupGroup autocmd! " Clean up buffers automatically when they are unloaded. - autocmd BufDelete * call ale#engine#Cleanup(str2nr(expand('<abuf>'))) + 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 |