aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-12-01 10:35:45 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2018-12-01 10:37:46 +0100
commit2271b10a8e890f24d38caa7e8199ba3b83164872 (patch)
tree137f26108553f5d5d8b3ba9168a2f8ca1dcc959c /src
parenta9e368a7050c86dff36d80dc1cced21de14dd3ac (diff)
downloadrneovim-2271b10a8e890f24d38caa7e8199ba3b83164872.tar.gz
rneovim-2271b10a8e890f24d38caa7e8199ba3b83164872.tar.bz2
rneovim-2271b10a8e890f24d38caa7e8199ba3b83164872.zip
insert: make <cmd> mapping work in completion (CTRL-X) mode
Diffstat (limited to 'src')
-rw-r--r--src/nvim/edit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 451d19b8e3..c04190eaba 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -3195,7 +3195,8 @@ 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_EVENT) {
+ || c == K_MOUSELEFT || c == K_MOUSERIGHT || c == K_EVENT
+ || c == K_COMMAND) {
return retval;
}