1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2019-10-03 22:35:52 +02:00
parent 1824f45883
commit e8a7dfedfc
3 changed files with 28 additions and 0 deletions

View File

@@ -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