Merge pull request #194 from starcraftman/master

Fix for #193 Missing status when PlugUpdate
This commit is contained in:
Junegunn Choi 2015-03-23 09:15:59 +09:00
commit cf1f644aa8

View File

@ -849,7 +849,7 @@ function! s:job_handler(name) abort
call s:reap(a:name) call s:reap(a:name)
call s:tick() call s:tick()
else else
let job.result .= s:to_s(v:job_data[2]) let job.result .= substitute(s:to_s(v:job_data[2]), '[\r\n]', '', 'g') . "\n"
" To reduce the number of buffer updates " To reduce the number of buffer updates
let job.tick = get(job, 'tick', -1) + 1 let job.tick = get(job, 'tick', -1) + 1
if job.tick % len(s:jobs) == 0 if job.tick % len(s:jobs) == 0