From 1a62e9573310e776621c05e6a8d8befd054042cc Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 5 Jun 2017 13:55:18 +0100 Subject: [PATCH] Do not check files on insert leave --- plugin/ale.vim | 2 +- test/test_ale_init_au_groups.vader | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/ale.vim b/plugin/ale.vim index 40e1a36..4a3f652 100644 --- a/plugin/ale.vim +++ b/plugin/ale.vim @@ -234,7 +234,7 @@ function! ALEInitAuGroups() abort augroup ALERunOnInsertLeave autocmd! if g:ale_enabled && g:ale_lint_on_insert_leave - autocmd InsertLeave * call ale#Queue(0, 'lint_file') + autocmd InsertLeave * call ale#Queue(0) endif augroup END diff --git a/test/test_ale_init_au_groups.vader b/test/test_ale_init_au_groups.vader index 532232b..503b7c2 100644 --- a/test/test_ale_init_au_groups.vader +++ b/test/test_ale_init_au_groups.vader @@ -86,7 +86,7 @@ Execute (g:ale_lint_on_insert_leave = 1 should bind InsertLeave): let g:ale_lint_on_insert_leave = 1 AssertEqual [ - \ 'InsertLeave * call ale#Queue(0, ''lint_file'')', + \ 'InsertLeave * call ale#Queue(0)', \], CheckAutocmd('ALERunOnInsertLeave') Execute (g:ale_lint_on_insert_leave = 0 should bind no events):