Show
Ignore:
Timestamp:
1998-10-12 12:53:42 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

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@…>)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • addrbook.c

    r382 r433  
    126126  int i, done = 0; 
    127127  char helpstr[SHORT_STRING]; 
    128   int savedmenu = CurrentMenu; 
    129128 
    130129  if (!aliases) 
     
    141140  menu->search = alias_search; 
    142141  menu->tag = alias_tag; 
    143   menu->menu = CurrentMenu = MENU_ALIAS; 
     142  menu->menu = MENU_ALIAS; 
    144143  menu->title = _("Aliases"); 
    145144  menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_ALIAS, AliasHelp); 
     
    190189   
    191190  mutt_menuDestroy (&menu); 
    192   CurrentMenu = savedmenu; 
    193191  safe_free ((void **) &AliasTable); 
    194192}