diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-12 19:53:42 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-12 19:53:42 +0000 |
commit | 187ac0ce86e8aa5f8103fedfc68f2ca7acf2137c (patch) | |
tree | 4963c8671ed6b33d9a8856c3590c18c5c09c919c /addrbook.c | |
parent | d6b1a4d9eccd565bbafa82aee1dfbf085a4f47e2 (diff) |
The attached patch removes some redundant code related to the macro
function stuff. Since each menu calls km_dokey() to get the 'op'
number to execute, the 'menu' argument to km_dokey() _is_ the
CurrentMenu. Hence, there is no need to explicitly save/restore the
CurrentMenu all over the code. The only places it is being captured
now is just before mutt_enter_comamnd() is called. This is to help
the 'exec' command completion code so that it knows which menu to
try and complete the function name from.
(From: Vikas Agnihotri <VikasA@att.com>)
Diffstat (limited to 'addrbook.c')
-rw-r--r-- | addrbook.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -125,7 +125,6 @@ void mutt_alias_menu (char *buf, size_t buflen, ALIAS *aliases) int t = -1; int i, done = 0; char helpstr[SHORT_STRING]; - int savedmenu = CurrentMenu; if (!aliases) { @@ -140,7 +139,7 @@ void mutt_alias_menu (char *buf, size_t buflen, ALIAS *aliases) menu->make_entry = alias_entry; menu->search = alias_search; menu->tag = alias_tag; - menu->menu = CurrentMenu = MENU_ALIAS; + menu->menu = MENU_ALIAS; menu->title = _("Aliases"); menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_ALIAS, AliasHelp); @@ -189,6 +188,5 @@ void mutt_alias_menu (char *buf, size_t buflen, ALIAS *aliases) rfc822_write_address (buf, buflen, AliasTable[t]->addr); mutt_menuDestroy (&menu); - CurrentMenu = savedmenu; safe_free ((void **) &AliasTable); } |