Fix #635 - Cancel previous jobs for fixing files when fixing files again

This commit is contained in:
w0rp 2017-06-08 09:24:15 +01:00
parent 817b6bbd2d
commit e93dba351c
1 changed files with 5 additions and 0 deletions

View File

@ -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)