Yukihiro Nakadaira wrote:

> test_channel.vim fails with Win32 CUI Vim.
> 
> What the following patch fix is
> 1. Vim sleep 5 msec even when timeout=0.
> 2. channel_handle_events() closes channel when there is no input.
> 3. ":sleep" command does not read channel (I am not sure where is the right
>    place to call channel_handle_events()).

Thanks!

For Unix checking for events happens in mch_breakcheck().  And any other
place where RealWaitForChar() is called.

I hesitate to add channel_handle_events() in mch_breakcheck, it might be
too slow.  Perhaps it's better to put it inside parse_queued_messages().
That sort of makes sense.  And we can remove the other calls to
channel_handle_events() since parse_queued_messages() is called there
already.  They were actually in the wrong order.

Let me make that change.  Please check if it works.

Did you look at the problem that ch_read() doesn't timeout for Win32?
It's disabled in the test for now.

-- 
Vim is like Emacs without all the typing.  (John "Johann" Spetz)

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