Fix #635 - Cancel previous jobs for fixing files when fixing files again
This commit is contained in:
parent
817b6bbd2d
commit
e93dba351c
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue