diff options
| author | James McCoy <jamessan@jamessan.com> | 2020-06-10 13:24:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 13:24:45 -0400 |
| commit | dcd6cf5f3409f5fdab03bc82887efea02a597f3b (patch) | |
| tree | d65d1445fcf8befb2ea556b180bd3d05019f7bc1 /runtime/autoload/provider.vim | |
| parent | d8c5d122f1ba95bc71a78c5d70465bfa88623bd7 (diff) | |
| parent | d17e38e48209c19b63d809c5b807613f15aa03c8 (diff) | |
| download | rneovim-dcd6cf5f3409f5fdab03bc82887efea02a597f3b.tar.gz rneovim-dcd6cf5f3409f5fdab03bc82887efea02a597f3b.tar.bz2 rneovim-dcd6cf5f3409f5fdab03bc82887efea02a597f3b.zip | |
Merge pull request #11819 from erw7/fix-dot-net-stdin
[RDY] win: make UV_OVERLAPPED_PIPE optional
Diffstat (limited to 'runtime/autoload/provider.vim')
| -rw-r--r-- | runtime/autoload/provider.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/autoload/provider.vim b/runtime/autoload/provider.vim index dc24e801d0..803c1a0b1c 100644 --- a/runtime/autoload/provider.vim +++ b/runtime/autoload/provider.vim @@ -3,8 +3,11 @@ " Start the provider and perform a 'poll' request " " Returns a valid channel on success -function! provider#Poll(argv, orig_name, log_env) abort +function! provider#Poll(argv, orig_name, log_env, ...) abort let job = {'rpc': v:true, 'stderr_buffered': v:true} + if a:0 + let job = extend(job, a:1) + endif try let channel_id = jobstart(a:argv, job) if channel_id > 0 && rpcrequest(channel_id, 'poll') ==# 'ok' |