fix async on Windows

This commit is contained in:
Alan Hamlett 2017-10-04 09:44:44 -07:00
parent 43cf7c3460
commit aafc4bf402

View file

@ -314,11 +314,7 @@ let s:VERSION = '6.0.0'
endif
if s:has_async
let async_cmd = s:JoinArgs(cmd)
if s:IsWindows()
let async_cmd = 'cmd.exe /c ' . async_cmd
endif
let job = job_start([&shell, &shellcmdflag, async_cmd], {
let job = job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], {
\ 'stoponexit': '',
\ 'callback': {channel, output -> s:AsyncHandler(channel, output, cmd)}})
if extra_heartbeats != ''