From e93dba351cd4f78dd58a4e04fc6c06806029a77c Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 8 Jun 2017 09:24:15 +0100 Subject: Fix #635 - Cancel previous jobs for fixing files when fixing files again --- autoload/ale/fix.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'autoload') diff --git a/autoload/ale/fix.vim b/autoload/ale/fix.vim index 5438975b..2e9cf2cc 100644 --- a/autoload/ale/fix.vim +++ b/autoload/ale/fix.vim @@ -344,6 +344,11 @@ function! ale#fix#Fix(...) abort let l:buffer = bufnr('') + for l:job_id in keys(s:job_info_map) + call remove(s:job_info_map, l:job_id) + call ale#job#Stop(l:job_id) + endfor + " Clean up any files we might have left behind from a previous run. call ale#fix#RemoveManagedFiles(l:buffer) call ale#fix#InitBufferData(l:buffer, l:fixing_flag) -- cgit v1.2.3