Christian J. Robinson wrote:

> On Windows 7, without a server to connect to, this will echo a "9" 
> every time:
> 
>    :let open_config = {'mode': 'json', 'timeout': 2000, 'waittime': 2000}
>    :let handle = ch_open('localhost:9876', open_config)
>    :echomsg type(handle)

Yes.  Perhaps you wanted this:

        :echo ch_status(handle)
        "fail"

Ah, I see the documentation wasn't updated, it still mentions a negative
number for failure.  It should read:

ch_open({address} [, {options}])                                *ch_open()*
                Open a channel to {address}.  See |channel|.
                Returns a channel handle.  Use |ch_status()| to check for
                failure.


-- 
Shit makes the flowers grow and that's beautiful

 /// 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.

Raspunde prin e-mail lui