diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-03-16 21:43:51 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-03-17 13:26:51 +0100 |
commit | 5aa0159f013e58291e24dc391b2ae9db3badd68a (patch) | |
tree | 1789b72b211eae7cdfb63fe0903770a049ccaa73 /src | |
parent | c94575fded78be1c9fca8b7d193c9bbb30a1dc95 (diff) | |
download | rneovim-5aa0159f013e58291e24dc391b2ae9db3badd68a.tar.gz rneovim-5aa0159f013e58291e24dc391b2ae9db3badd68a.tar.bz2 rneovim-5aa0159f013e58291e24dc391b2ae9db3badd68a.zip |
edit.c: K_EVENT should not hide the popupmenu
Nor should K_FOCUSGAINED and K_FOCUSLOST.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/edit.c | 4 |
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 |