diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-22 22:33:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-22 22:33:57 +0000 |
commit | eb3593b38b7b6b658e93ad05d6caf76d58cc0c35 (patch) | |
tree | 39210f19a86e4db2914523b0fde4a5ff9d345c16 /src/menu.c | |
parent | 57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 (diff) | |
download | vim-eb3593b38b7b6b658e93ad05d6caf76d58cc0c35.zip |
updated for version 7.0e06
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/menu.c b/src/menu.c index 55fba1fd6..8b4539563 100644 --- a/src/menu.c +++ b/src/menu.c @@ -59,7 +59,7 @@ static char_u *menutrans_lookup __ARGS((char_u *name, int len)); #endif /* The character for each menu mode */ -static char_u menu_mode_chars[] = {'n', 'v', 'o', 'i', 'c', 't'}; +static char_u menu_mode_chars[] = {'n', 'v', 's', 'o', 'i', 'c', '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"); @@ -1293,6 +1293,7 @@ set_context_in_menu_cmd(xp, cmd, arg, forceit) name = p; menu = menu->children; } + vim_free(path_name); xp->xp_context = expand_menus ? EXPAND_MENUNAMES : EXPAND_MENUS; xp->xp_pattern = after_dot; |