From e8a7dfedfc8ea5c376c7912cb27a9405e4b8c972 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 3 Oct 2019 22:35:52 +0200 Subject: patch 8.1.2110: CTRL-C closes two popups instead of one Problem: CTRL-C closes two popups instead of one. Solution: Reset got_int when the filter consumed the key. --- src/getchar.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index fcdc639688..5e098dfcf8 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1791,7 +1791,11 @@ vgetc(void) #endif #ifdef FEAT_TEXT_PROP if (popup_do_filter(c)) + { + if (c == Ctrl_C) + got_int = FALSE; // avoid looping c = K_IGNORE; + } #endif // Need to process the character before we know it's safe to do something -- cgit v1.2.3