# HG changeset patch # User Christian Brabandt # Date 1498323603 -7200 # Node ID 2bc04093ed289e2eba62a7aa033d1562f82cc216 # Parent eb44a241bf3973054ce5ad95e943b07f61451a34 patch 8.0.0671: hang when typing CTRL-C in confirm() in timer commit https://github.com/vim/vim/commit/4eb6531b03445b4d492bc52fea0b6dcd886583af Author: Bram Moolenaar Date: Sat Jun 24 18:49:00 2017 +0200 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) diff --git a/src/getchar.c b/src/getchar.c --- a/src/getchar.c +++ b/src/getchar.c @@ -467,6 +467,11 @@ flush_buffers(int flush_typeahead) ; typebuf.tb_off = MAXMAPLEN; 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 */ { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 671, +/**/ 670, /**/ 669,