mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
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:
@@ -1351,9 +1351,15 @@ WaitForChar(long msec)
|
||||
DWORD dwWaitTime = dwEndTime - dwNow;
|
||||
|
||||
#ifdef FEAT_JOB_CHANNEL
|
||||
/* Check channel while waiting input. */
|
||||
/* Check channel while waiting for input. */
|
||||
if (dwWaitTime > 100)
|
||||
{
|
||||
dwWaitTime = 100;
|
||||
/* If there is readahead then parse_queued_messages() timed out
|
||||
* and we should call it again soon. */
|
||||
if (channel_any_readahead())
|
||||
dwWaitTime = 10;
|
||||
}
|
||||
#endif
|
||||
#ifdef FEAT_MZSCHEME
|
||||
if (mzthreads_allowed() && p_mzq > 0
|
||||
|
Reference in New Issue
Block a user