X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=alias.cpkg;h=4530db9a5c7e1858f3cfe85b06c8235549ab40c1;hp=7342c31cbf7cd1a9e56cc8878b6fa8351911bf49;hb=4d71119a25f96043c5d27cf46a732b216172708f;hpb=9946738a6a1c27a5602a14d1afe2eea2389732b2 diff --git a/alias.cpkg b/alias.cpkg index 7342c31..4530db9 100644 --- a/alias.cpkg +++ b/alias.cpkg @@ -29,8 +29,7 @@ #include -#include -#include +#include #include #include "alias.h" @@ -144,15 +143,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,9 +606,8 @@ 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, - ((alias_t **)m->data)[num], - option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0); + m_strformat(s, slen, getmaxx(main_w), MAlias.alias_format, alias_format_str, + ((alias_t **)m->data)[num], 0); } static int alias_tag (MUTTMENU * menu, int n, int m) @@ -637,7 +626,7 @@ static int alias_SortAlias (const void *a, const void *b) alias_t *pb = *(alias_t **) b; int r = m_strcasecmp(pa->name, pb->name); - return (RSORT (r)); + return RSORT (r); } static int alias_SortAddress (const void *a, const void *b) @@ -662,7 +651,7 @@ static int alias_SortAddress (const void *a, const void *b) r = -1; else r = ascii_strcasecmp (pa->mailbox, pb->mailbox); - return (RSORT (r)); + return RSORT (r); } void mutt_alias_menu (char *buf, size_t buflen, alias_t * aliases) @@ -673,7 +662,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; @@ -691,8 +679,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: