forked from luna/vim-rana-local
fix async on Windows
This commit is contained in:
parent
43cf7c3460
commit
aafc4bf402
1 changed files with 1 additions and 5 deletions
|
@ -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 != ''
|
||||||
|
|
Loading…
Reference in a new issue