Mercurial > vim
diff src/os_win32.c @ 8222:4f0677020a43 v7.4.1404
commit https://github.com/vim/vim/commit/9186a276222ea8a7c88f4092ac5b4201381f4e20
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 23 19:34:01 2016 +0100
patch 7.4.1404
Problem: ch_read() doesn't time out on MS-Windows.
Solution: Instead of WM_NETBEANS use select(). (Yukihiro Nakadaira)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 23 Feb 2016 19:45:05 +0100 |
parents | 477c1d855698 |
children | 989ac3aed1ef |
line wrap: on
line diff
--- 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))