Merge pull request #1327 from gregorias/nvim_git_issue

Do not forward v:shell_error on command fail.
This commit is contained in:
Christian Brabandt 2016-11-20 16:47:32 +01:00 committed by GitHub
commit c02d774b05

View File

@ -97,10 +97,7 @@ if has('nvim')
if l:id < 1
return system(a:cmd)
endif
let l:ret_code = jobwait([l:id])
if l:ret_code != [0]
return system(a:cmd)
endif
call jobwait([l:id])
return l:config.buf
endfunction
else