diff options
author | w0rp <devw0rp@gmail.com> | 2017-06-08 09:24:15 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-06-08 09:24:15 +0100 |
commit | e93dba351cd4f78dd58a4e04fc6c06806029a77c (patch) | |
tree | 1bf05d775ca24d9271dcf7a3a8cd1b5e0367bfc2 | |
parent | 817b6bbd2d3aff48535e0904f0726f82fc89744f (diff) | |
download | ale-e93dba351cd4f78dd58a4e04fc6c06806029a77c.zip |
Fix #635 - Cancel previous jobs for fixing files when fixing files again
-rw-r--r-- | autoload/ale/fix.vim | 5 |
1 files changed, 5 insertions, 0 deletions
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) |