Mercurial > vim
changeset 11577:2bc04093ed28 v8.0.0671
patch 8.0.0671: hang when typing CTRL-C in confirm() in timer
commit https://github.com/vim/vim/commit/4eb6531b03445b4d492bc52fea0b6dcd886583af
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 24 Jun 2017 19:00:03 +0200 |
parents | eb44a241bf39 |
children | c2d4de06dc92 |
files | src/getchar.c src/version.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 */ {