0
0
mirror of https://github.com/vim/vim.git synced 2025-10-27 09:24:23 -04:00

updated for version 7.0g02

This commit is contained in:
Bram Moolenaar
2006-05-03 21:28:47 +00:00
parent 9c102387af
commit 8b2d9c4318
5 changed files with 51 additions and 27 deletions

View File

@@ -91,6 +91,7 @@ ex_menu(eap)
char_u *map_to;
int noremap;
int silent = FALSE;
int special = FALSE;
int unmenu;
char_u *map_buf;
char_u *arg;
@@ -131,6 +132,12 @@ ex_menu(eap)
arg = skipwhite(arg + 8);
continue;
}
if (STRNCMP(arg, "<special>", 9) == 0)
{
special = TRUE;
arg = skipwhite(arg + 9);
continue;
}
break;
}
@@ -390,7 +397,7 @@ ex_menu(eap)
else if (modes & MENU_TIP_MODE)
map_buf = NULL; /* Menu tips are plain text. */
else
map_to = replace_termcodes(map_to, &map_buf, FALSE, TRUE);
map_to = replace_termcodes(map_to, &map_buf, FALSE, TRUE, special);
menuarg.modes = modes;
#ifdef FEAT_TOOLBAR
menuarg.iconfile = icon;