aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbambu <bambu@revengsec.com>2015-09-25 20:38:38 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-10-03 03:02:05 -0400
commit2788f7fcc8bba0dd5830a756dbeed2b976755a34 (patch)
tree265705e35d46096b9f88346054a12b609f0acea0 /src
parentf454e4bb11a7a69f1c03325016e3b95cda2fc08e (diff)
downloadrneovim-2788f7fcc8bba0dd5830a756dbeed2b976755a34.tar.gz
rneovim-2788f7fcc8bba0dd5830a756dbeed2b976755a34.tar.bz2
rneovim-2788f7fcc8bba0dd5830a756dbeed2b976755a34.zip
menu: support :emenu invoked by cmenu map.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c
index 1dece58dfe..9857b8a778 100644
--- a/src/nvim/menu.c
+++ b/src/nvim/menu.c
@@ -1262,6 +1262,9 @@ void ex_emenu(exarg_T *eap)
if (((State & INSERT) || restart_edit) && !current_SID) {
mode = (char_u *)"Insert";
idx = MENU_INDEX_INSERT;
+ } else if (State & CMDLINE) {
+ mode = (char_u *)"Command";
+ idx = MENU_INDEX_CMDLINE;
} else if (get_real_state() & VISUAL) {
/* Detect real visual mode -- if we are really in visual mode we
* don't need to do any guesswork to figure out what the selection