mirror of
https://github.com/prabirshrestha/async.vim.git
synced 2025-12-23 12:14:19 +01:00
Wait for transmit buffer to be empty, before calling ch_close_in
This commit is contained in:
committed by
Prabir Shrestha
parent
ada658f2c8
commit
a0f4e4e91c
@@ -212,7 +212,10 @@ function! s:job_send(jobid, data, close_stdin) abort
|
||||
call s:flush_vim_sendraw(a:jobid, v:null)
|
||||
endif
|
||||
if a:close_stdin
|
||||
call ch_close_in(l:jobinfo.channel)
|
||||
while len(l:jobinfo.buffer) != 0
|
||||
sleep 1m
|
||||
endwhile
|
||||
call ch_close_in(l:jobinfo.channel)
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user