From 74691269ce7050e6c13053bd884af9c05b630c1e Mon Sep 17 00:00:00 2001 From: w0rp Date: Fri, 19 May 2017 15:24:21 +0100 Subject: Run a lint cycle after fixing problems --- autoload/ale/fix.vim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'autoload') diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 9fe99563..abb6afe9 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -41,6 +41,12 @@ function! ale#fix#ApplyQueuedFixes() abort silent execute l:start_line . ',' . l:end_line . 'd' call winrestview(l:save) endif + + " If ALE linting is enabled, check for problems with the file again after + " fixing problems. + if g:ale_enabled + call ale#Queue(g:ale_lint_delay) + endif endfunction function! s:ApplyFixes(buffer, output) abort -- cgit v1.2.3