summaryrefslogtreecommitdiffstats
path: root/addrbook.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2008-11-30 20:28:53 +0100
committerRocco Rutte <pdmef@gmx.net>2008-11-30 20:28:53 +0100
commit30541be34d3c54bb9b860aca01414d4c2a38cc4d (patch)
tree2e74abae5d3dae0c5d0f9b0ceb4d48b31fb78f53 /addrbook.c
parenta4eebaaf393239407ba65ce984fba4dc41e4410e (diff)
Manage last search pattern outside of menu lifecycle
Previously, the pattern was thrown away during menu destruction. For the next search, mutt then can't provide a good suggestion. The new behaviour is to manage the pattern outside the lifecyle to always provide the last pattern as suggestion.
Diffstat (limited to 'addrbook.c')
-rw-r--r--addrbook.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/addrbook.c b/addrbook.c
index a719062a..46ee6059 100644
--- a/addrbook.c
+++ b/addrbook.c
@@ -149,10 +149,9 @@ void mutt_alias_menu (char *buf, size_t buflen, ALIAS *aliases)
/* tell whoever called me to redraw the screen when I return */
set_option (OPTNEEDREDRAW);
- menu = mutt_new_menu ();
+ menu = mutt_new_menu (MENU_ALIAS);
menu->make_entry = alias_entry;
menu->tag = alias_tag;
- menu->menu = MENU_ALIAS;
menu->title = _("Aliases");
menu->help = mutt_compile_help (helpstr, sizeof (helpstr), MENU_ALIAS, AliasHelp);