aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-03-18 16:39:57 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-03-18 16:39:57 -0400
commit5730ad937672d9bb778aee6889c2de084942f9ba (patch)
tree5cb77d6238f910ec0322df2bdf06876d9d30bdcb /src
parentcfcc6be73e546d591ca9e9757734faf550bafcdb (diff)
parent5aa0159f013e58291e24dc391b2ae9db3badd68a (diff)
downloadrneovim-5730ad937672d9bb778aee6889c2de084942f9ba.tar.gz
rneovim-5730ad937672d9bb778aee6889c2de084942f9ba.tar.bz2
rneovim-5730ad937672d9bb778aee6889c2de084942f9ba.zip
Merge pull request #4461 from bfredl/pum_k_event
K_EVENT should not hide the popupmenu
Diffstat (limited to 'src')
-rw-r--r--src/nvim/edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 3729cd5f2d..1c33c4d549 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -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