Yasuhiro Matsumoto wrote:
> Bram, it seems no one close the channel.
>
> diff --git a/src/channel.c b/src/channel.c
> index aa97088..0cf8718 100644
> --- a/src/channel.c
> +++ b/src/channel.c
> @@ -1708,7 +1708,7 @@ channel_read(channel_T *channel, int part, char *func)
>
> /* Reading a socket disconnection (readlen == 0), or a socket error.
> * TODO: call error callback. */
> - if (readlen <= 0 && channel->ch_job == NULL)
> + if (readlen <= 0)
> {
> /* Queue a "DETACH" netbeans message in the command queue in order to
> * terminate the netbeans session later. Do not end the session here
Thanks! Now this works:
let job = job_start('echo hi')
let ch = job_getchannel(job)
echo "'" . ch_read(ch) . "'"
--
"It's so simple to be wise. Just think of something stupid to say
and then don't say it." -- Sam Levenson
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.