John Marriott wrote: > 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.
Thanks! -- DEAD PERSON: I don't want to go in the cart! CUSTOMER: Oh, don't be such a baby. MORTICIAN: I can't take him... DEAD PERSON: I feel fine! CUSTOMER: Oh, do us a favor... MORTICIAN: I can't. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.