diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-03 22:35:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-03 22:35:52 +0200 |
commit | e8a7dfedfc8ea5c376c7912cb27a9405e4b8c972 (patch) | |
tree | 418a497ee524c8bb1cd2194d3ec35983bd2465c8 /src/getchar.c | |
parent | 1824f45883ef7cc236d2bba89811989a1ccb853c (diff) | |
download | vim-git-e8a7dfedfc8ea5c376c7912cb27a9405e4b8c972.tar.gz |
patch 8.1.2110: CTRL-C closes two popups instead of onev8.1.2110
Problem: CTRL-C closes two popups instead of one.
Solution: Reset got_int when the filter consumed the key.
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/getchar.c b/src/getchar.c index fcdc63968..5e098dfcf 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 |