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 endif
if s:has_async if s:has_async
let async_cmd = s:JoinArgs(cmd) let job = job_start([&shell, &shellcmdflag, s:JoinArgs(cmd)], {
if s:IsWindows()
let async_cmd = 'cmd.exe /c ' . async_cmd
endif
let job = job_start([&shell, &shellcmdflag, async_cmd], {
\ 'stoponexit': '', \ 'stoponexit': '',
\ 'callback': {channel, output -> s:AsyncHandler(channel, output, cmd)}}) \ 'callback': {channel, output -> s:AsyncHandler(channel, output, cmd)}})
if extra_heartbeats != '' if extra_heartbeats != ''