summaryrefslogtreecommitdiffstats
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-01 20:32:44 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-01 20:32:44 +0100
commit59716a27bd5c6c64def6c3ca430ff1246deae749 (patch)
treea7db246338a5e0c8aaf8222f6b70d6b41325bbeb /src/os_win32.c
parentf8ab1b14fd972a093e0c12146dd3becd511eb519 (diff)
patch 8.0.0396: 'balloonexpr' only works synchronouslyv8.0.0396
Problem: 'balloonexpr' only works synchronously. Solution: Add balloon_show(). (Jusufadis Bakamovic, closes #1449)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index adbb199b9d..a3048427cd 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -1467,6 +1467,12 @@ WaitForChar(long msec)
dwWaitTime = 10;
}
#endif
+#ifdef FEAT_BEVAL
+ if (p_beval && dwWaitTime > 100)
+ /* The 'balloonexpr' may indirectly invoke a callback while
+ * waiting for a character, need to check often. */
+ dwWaitTime = 100;
+#endif
#ifdef FEAT_MZSCHEME
if (mzthreads_allowed() && p_mzq > 0
&& (msec < 0 || (long)dwWaitTime > p_mzq))