summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-06 13:11:05 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-06 13:11:05 +0100
commitf42b45d719e03218735b3c2845a74dca9c0efd60 (patch)
treee5974454b590f16abc0aeafa523f4a710bdbf24e /src/menu.c
parent4614f53e0f853b513963d1a639398348a571ecf1 (diff)
downloadvim-git-f42b45d719e03218735b3c2845a74dca9c0efd60.tar.gz
patch 8.1.0695: internal error when using :popupv8.1.0695
Problem: Internal error when using :popup. Solution: When a menu only exists in Terminal mode give an error. (Naruhiko Nishino, closes #3765)
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/menu.c b/src/menu.c
index 782235a11..944211844 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -61,7 +61,6 @@ static char_u *menu_translate_tab_and_shift(char_u *arg_start);
static char *menu_mode_chars[] = {"n", "v", "s", "o", "i", "c", "tl", "t"};
static char_u e_notsubmenu[] = N_("E327: Part of menu-item path is not sub-menu");
-static char_u e_othermode[] = N_("E328: Menu only exists in another mode");
static char_u e_nomenu[] = N_("E329: No menu \"%s\"");
#ifdef FEAT_TOOLBAR
@@ -956,7 +955,7 @@ remove_menu(
else if (*name != NUL)
{
if (!silent)
- EMSG(_(e_othermode));
+ EMSG(_(e_menuothermode));
return FAIL;
}
@@ -1130,7 +1129,7 @@ show_menus(char_u *path_name, int modes)
}
else if ((menu->modes & modes) == 0x0)
{
- EMSG(_(e_othermode));
+ EMSG(_(e_menuothermode));
vim_free(path_name);
return FAIL;
}