0
0
mirror of https://github.com/vim/vim.git synced 2025-10-10 06:24:10 -04:00

patch 8.0.0671: hang when typing CTRL-C in confirm() in timer

Problem:    When a function invoked from a timer calls confirm() and the user
            types CTRL-C then Vim hangs.
Solution:   Reset typebuf_was_filled. (Ozaki Kiichi, closes #1791)
This commit is contained in:
Bram Moolenaar
2017-06-24 18:49:00 +02:00
parent 1e8e14552e
commit 4eb6531b03
2 changed files with 7 additions and 0 deletions

View File

@@ -467,6 +467,11 @@ flush_buffers(int flush_typeahead)
; ;
typebuf.tb_off = MAXMAPLEN; typebuf.tb_off = MAXMAPLEN;
typebuf.tb_len = 0; typebuf.tb_len = 0;
#if defined(FEAT_CLIENTSERVER) || defined(FEAT_EVAL)
/* Reset the flag that text received from a client or from feedkeys()
* was inserted in the typeahead buffer. */
typebuf_was_filled = FALSE;
#endif
} }
else /* remove mapped characters at the start only */ else /* remove mapped characters at the start only */
{ {

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
671,
/**/ /**/
670, 670,
/**/ /**/