aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/menu.c')
-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