edit.c: K_EVENT should not hide the popupmenu

Nor should K_FOCUSGAINED and K_FOCUSLOST.
This commit is contained in:
Björn Linse
2016-03-16 21:43:51 +01:00
parent c94575fded
commit 5aa0159f01
2 changed files with 59 additions and 4 deletions

View File

@@ -3084,8 +3084,10 @@ static bool ins_compl_prep(int c)
/* Ignore end of Select mode mapping and mouse scroll buttons. */
if (c == K_SELECT || c == K_MOUSEDOWN || c == K_MOUSEUP
|| c == K_MOUSELEFT || c == K_MOUSERIGHT)
|| c == K_MOUSELEFT || c == K_MOUSERIGHT || c == K_EVENT
|| c == K_FOCUSGAINED || c == K_FOCUSLOST) {
return retval;
}
/* Set "compl_get_longest" when finding the first matches. */
if (ctrl_x_mode == CTRL_X_NOT_DEFINED_YET