Skip to content

Commit b59859e

Browse files
committed
Start job with input open to fix win32 support
Closes #275
1 parent 219df23 commit b59859e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

autoload/dispatch/job.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ function! dispatch#job#handle(request) abort
2020
endif
2121
if exists('*job_start')
2222
let job = job_start([&shell, &shellcmdflag, a:request.expanded], {
23-
\ 'in_io': 'null',
24-
\ 'out_mode': 'raw',
25-
\ 'err_mode': 'raw',
23+
\ 'mode': 'raw',
2624
\ 'callback': function('s:output'),
2725
\ 'close_cb': function('s:closed'),
2826
\ 'exit_cb': function('s:exit'),
2927
\ })
28+
call ch_close_in(job)
3029
let a:request.pid = job_info(job).process
3130
let a:request.job = job
3231
let ch_id = ch_info(job_info(job).channel).id

0 commit comments

Comments
 (0)