summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2016-10-24 09:58:45 +0100
committerw0rp <devw0rp@gmail.com>2016-10-24 09:58:45 +0100
commit0dbf08f6d5466262e66a6000d83be7270a9cef53 (patch)
tree9a7a47009752b6794d195077597669b14623f3ea
parent7481facd7373dda4667c401695e6d8000ef52362 (diff)
downloadale-0dbf08f6d5466262e66a6000d83be7270a9cef53.zip
Add some comments to some lines to make things clearer.
-rw-r--r--autoload/ale/engine.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/ale/engine.vim b/autoload/ale/engine.vim
index 3af60ab6..5a257505 100644
--- a/autoload/ale/engine.vim
+++ b/autoload/ale/engine.vim
@@ -104,6 +104,8 @@ function! s:HandleExit(job) abort
let l:output = l:job_info.output
let l:buffer = l:job_info.buffer
+ " Call the same function for stopping jobs again to clean up the job
+ " which just closed.
call s:StopPreviousJobs(l:buffer, l:linter)
let l:linter_loclist = ale#util#GetFunction(l:linter.callback)(l:buffer, l:output)
@@ -294,6 +296,7 @@ function! ale#engine#WaitForJobs(deadline) abort
let l:job_list = []
+ " Gather all of the jobs from every buffer.
for l:info in values(g:ale_buffer_info)
call extend(l:job_list, l:info.job_list)
endfor