diff options
author | Rocco Rutte <pdmef@gmx.net> | 2008-11-30 20:28:53 +0100 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2008-11-30 20:28:53 +0100 |
commit | 30541be34d3c54bb9b860aca01414d4c2a38cc4d (patch) | |
tree | 2e74abae5d3dae0c5d0f9b0ceb4d48b31fb78f53 /addrbook.c | |
parent | a4eebaaf393239407ba65ce984fba4dc41e4410e (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |