1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Fix up: do not add invalid jobid

This commit is contained in:
wsdjeg 2017-07-29 22:06:34 +08:00
parent 2845282410
commit e356ded27d

View File

@ -412,8 +412,8 @@ function! s:build(repo) abort
\ 'on_exit' : function('s:on_build_exit'),
\ 'cwd' : a:repo.path,
\ })
let s:building_repos[jobid . ''] = a:repo
if jobid > 0
let s:building_repos[jobid . ''] = a:repo
call s:msg_on_build_start(a:repo.name)
elseif jobid == 0
call s:msg_on_build_failed(a:repo.name)