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 /test/test_autocmd_commands.vader | |
parent | b8a1038a411e266c07a7e91c6561126680854bef (diff) | |
download | ale-e306e5cdb06ede621de529849e54f11f0e8069fe.zip |
Avoid calling ALE cleanup code if ALE never tried to check a buffer
Diffstat (limited to 'test/test_autocmd_commands.vader')
-rw-r--r-- | test/test_autocmd_commands.vader | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_autocmd_commands.vader b/test/test_autocmd_commands.vader index b02f852c..63e704bd 100644 --- a/test/test_autocmd_commands.vader +++ b/test/test_autocmd_commands.vader @@ -191,7 +191,7 @@ Execute (g:ale_echo_cursor = 1 should bind cursor events): Execute (ALECleanupGroup should include the right commands): AssertEqual [ - \ 'BufDelete * call ale#engine#Cleanup(str2nr(expand(''<abuf>'')))', + \ 'BufDelete * if exists(''*ale#engine#Cleanup'') | call ale#engine#Cleanup(str2nr(expand(''<abuf>''))) | endif', \ 'QuitPre * call ale#events#QuitEvent(str2nr(expand(''<abuf>'')))', \], CheckAutocmd('ALECleanupGroup') |