On 21-Apr-2016 4:20 AM, Bram Moolenaar wrote:
Patch 7.4.1759
Problem: When using feedkeys() in a timer the inserted characters are not
used right away.
Solution: Break the wait loop when characters have been added to typebuf.
use this for testing CursorHoldI.
Files: src/gui.c, src/os_win32.c, src/os_unix.c,
src/testdir/test_autocmd.vim
This patch throws a warning (using mingw64) if FEAT_TIMERS is disabled,
like so:
...
os_win32.c: In function 'WaitForChar':
os_win32.c:1449:14: warning: unused variable 'tb_change_cnt'
[-Wunused-variable]
int tb_change_cnt = typebuf.tb_change_cnt;
^
...
Attached patch fixes it.
Cheers
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
--- os_win32_orig.c 2016-04-21 04:25:42.033012700 +1000
+++ os_win32.c 2016-04-21 04:40:26.290043100 +1000
@@ -1446,7 +1446,9 @@
INPUT_RECORD ir;
DWORD cRecords;
WCHAR ch, ch2;
+#ifdef FEAT_TIMERS
int tb_change_cnt = typebuf.tb_change_cnt;
+#endif
if (msec > 0)
/* Wait until the specified time has elapsed. */