1
0
forked from aniani/vim

patch 8.0.0103

Problem:    May not process channel readahead. (skywind)
Solution:   If there is readahead don't block on input.
This commit is contained in:
Bram Moolenaar
2016-11-26 15:13:33 +01:00
parent 7554da4033
commit 8a8199e4a1
6 changed files with 40 additions and 5 deletions

View File

@@ -462,6 +462,10 @@ mch_inchar(
/* Checking if a job ended requires polling. Do this every 100 msec. */
if (has_pending_job() && (wait_time < 0 || wait_time > 100L))
wait_time = 100L;
/* If there is readahead then parse_queued_messages() timed out and we
* should call it again soon. */
if ((wait_time < 0 || wait_time > 100L) && channel_any_readahead())
wait_time = 10L;
#endif
/*