From 8b2d9c4318eb24275d69bdf8b66680b544c1908d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 3 May 2006 21:28:47 +0000 Subject: updated for version 7.0g02 --- src/menu.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/menu.c') diff --git a/src/menu.c b/src/menu.c index dac4754cda..96a535ff49 100644 --- a/src/menu.c +++ b/src/menu.c @@ -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, "", 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; -- cgit v1.2.3