0
0
mirror of https://github.com/vim/vim.git synced 2025-10-10 06:24:10 -04:00

patch 7.4.1404

Problem:    ch_read() doesn't time out on MS-Windows.
Solution:   Instead of WM_NETBEANS use select(). (Yukihiro Nakadaira)
This commit is contained in:
Bram Moolenaar
2016-02-23 19:34:01 +01:00
parent 0106e3d0bf
commit 9186a27622
7 changed files with 33 additions and 88 deletions

View File

@@ -1492,6 +1492,11 @@ WaitForChar(long msec)
{
DWORD dwWaitTime = dwEndTime - dwNow;
#ifdef FEAT_CHANNEL
/* Check channel while waiting input. */
if (dwWaitTime > 100)
dwWaitTime = 100;
#endif
#ifdef FEAT_MZSCHEME
if (mzthreads_allowed() && p_mzq > 0
&& (msec < 0 || (long)dwWaitTime > p_mzq))