summaryrefslogtreecommitdiff
path: root/test/test_autocmd_commands.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-03 21:14:00 +0100
committerw0rp <devw0rp@gmail.com>2018-07-03 21:14:00 +0100
commit602e7fa00f50de2af3a35e1cc0a536be07947d5a (patch)
treeb2f793782f3bd92d91fedb2fc2d41d7ec821be7d /test/test_autocmd_commands.vader
parente10e0934ab235976f5006152e6bb44663b95ab07 (diff)
downloadale-602e7fa00f50de2af3a35e1cc0a536be07947d5a.zip
#1524 Avoid loading cursor code until engine code has been loaded
Diffstat (limited to 'test/test_autocmd_commands.vader')
-rw-r--r--test/test_autocmd_commands.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_autocmd_commands.vader b/test/test_autocmd_commands.vader
index 01646606..5b48be99 100644
--- a/test/test_autocmd_commands.vader
+++ b/test/test_autocmd_commands.vader
@@ -85,12 +85,12 @@ Execute (All events should be set up when everything is on):
\ 'BufReadPost call ale#Queue(0, ''lint_file'', str2nr(expand(''<abuf>'')))',
\ 'BufWinEnter * call ale#Queue(0, ''lint_file'', str2nr(expand(''<abuf>'')))',
\ 'BufWritePost * call ale#events#SaveEvent(str2nr(expand(''<abuf>'')))',
- \ 'CursorHold * call ale#cursor#EchoCursorWarningWithDelay()',
- \ 'CursorMoved * call ale#cursor#EchoCursorWarningWithDelay()',
+ \ 'CursorHold * if exists(''*ale#engine#Cleanup'') | call ale#cursor#EchoCursorWarningWithDelay() | endif',
+ \ 'CursorMoved * if exists(''*ale#engine#Cleanup'') | call ale#cursor#EchoCursorWarningWithDelay() | endif',
\ 'FileChangedShellPost * call ale#events#FileChangedEvent(str2nr(expand(''<abuf>'')))',
\ 'FileType * call ale#events#FileTypeEvent( str2nr(expand(''<abuf>'')), expand(''<amatch>''))',
\ 'InsertLeave * call ale#Queue(0)',
- \ 'InsertLeave call ale#cursor#EchoCursorWarning()',
+ \ 'InsertLeave if exists(''*ale#engine#Cleanup'') | call ale#cursor#EchoCursorWarning() | endif',
\ 'TextChanged * call ale#Queue(g:ale_lint_delay)',
\ 'TextChangedI * call ale#Queue(g:ale_lint_delay)',
\ ],