summaryrefslogtreecommitdiffstats
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-23 19:34:01 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-23 19:34:01 +0100
commit9186a276222ea8a7c88f4092ac5b4201381f4e20 (patch)
treea1c29ae0fae907a1746b99a7bbfcf0ae244cd8c2 /src/os_win32.c
parent0106e3d0bf8a38351af45331cbf3b9172a6bb90b (diff)
patch 7.4.1404v7.4.1404
Problem: ch_read() doesn't time out on MS-Windows. Solution: Instead of WM_NETBEANS use select(). (Yukihiro Nakadaira)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 047045047e..e93e6d0181 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -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))