X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=alias.cpkg;h=10e2d8c2630d250d4611a7ac3720a505716d3e1c;hp=d11d89987952c0d95abd648a131086b384e2135d;hb=cfd5f411041c7ef44087b032751792fadc74586d;hpb=c50162101b316e88b95dc4259d45a259b38a972e diff --git a/alias.cpkg b/alias.cpkg index d11d899..10e2d8c 100644 --- a/alias.cpkg +++ b/alias.cpkg @@ -29,7 +29,7 @@ #include -#include +#include #include #include @@ -144,15 +144,6 @@ alias_t *Aliases; #define RSORT(x) (SortAlias & SORT_REVERSE) ? -x : x -static struct mapping_t AliasHelp[] = { - {N_("Exit"), OP_EXIT}, - {N_("Del"), OP_DELETE}, - {N_("Undel"), OP_UNDELETE}, - {N_("Select"), OP_GENERIC_SELECT_ENTRY}, - {N_("Help"), OP_HELP}, - {NULL, OP_NULL} -}; - static void mutt_alias_menu(char *, size_t, alias_t *); const address_t *alias_lookup(const char *s) @@ -616,7 +607,7 @@ alias_format_str(char *dest, ssize_t destlen, char op, const char *src, static void alias_entry(char *s, ssize_t slen, MUTTMENU *m, int num) { - m_strformat(s, slen, COLS - SW, MAlias.alias_format, alias_format_str, + m_strformat(s, slen, getmaxx(main_w), MAlias.alias_format, alias_format_str, ((alias_t **)m->data)[num], 0); } @@ -672,7 +663,6 @@ void mutt_alias_menu (char *buf, size_t buflen, alias_t * aliases) int t = -1; int i, done = 0; int op; - char helpstr[STRING]; int omax; @@ -690,8 +680,6 @@ void mutt_alias_menu (char *buf, size_t buflen, alias_t * aliases) menu->tag = alias_tag; menu->menu = MENU_ALIAS; menu->title = _("Aliases"); - menu->help = mutt_compile_help(helpstr, sizeof(helpstr), - MENU_ALIAS, AliasHelp); new_aliases: