1
0
forked from aniani/vim

patch 8.0.0670: can't use input() in a timer callback

Problem:    Can't use input() in a timer callback. (Cosmin Popescu)
Solution:   Reset vgetc_busy and set timer_busy. (Ozaki Kiichi, closes #1790,
            closes #1129)
This commit is contained in:
Bram Moolenaar
2017-06-24 16:03:06 +02:00
parent 24a9e348aa
commit 1e8e14552e
5 changed files with 27 additions and 1 deletions

View File

@@ -3191,7 +3191,7 @@ f_feedkeys(typval_T *argvars, typval_T *rettv UNUSED)
ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE),
insert ? 0 : typebuf.tb_len, !typed, FALSE);
vim_free(keys_esc);
if (vgetc_busy)
if (vgetc_busy || timer_busy)
typebuf_was_filled = TRUE;
if (execute)
{