diff options
author | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:59 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2016-04-27 17:56:59 -0700 |
commit | c9223a12cdde6f9c1589c422216021b9eae048e1 (patch) | |
tree | ff0f3d204093fe6d785156aaf0cbea3807dec345 /addrbook.c | |
parent | c8bd15377ed657b7afbed1f74c6b052e06b19d23 (diff) |
Add cols parameter to mutt_FormatString()
Continuing with the conversion to using windows for screen drawing,
mutt_FormatString() was directly using COLS for right justification
and similar formatting. Instead pass in a parameter, cols.
This change involved seeding the parameter through callback functions
too, as many of them call mutt_FormatString() back.
Diffstat (limited to 'addrbook.c')
-rw-r--r-- | addrbook.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,7 +43,7 @@ static const struct mapping_t AliasHelp[] = { }; static const char * -alias_format_str (char *dest, size_t destlen, size_t col, char op, const char *src, +alias_format_str (char *dest, size_t destlen, size_t col, int cols, char op, const char *src, const char *fmt, const char *ifstring, const char *elsestring, unsigned long data, format_flag flags) { @@ -80,7 +80,7 @@ alias_format_str (char *dest, size_t destlen, size_t col, char op, const char *s static void alias_entry (char *s, size_t slen, MUTTMENU *m, int num) { - mutt_FormatString (s, slen, 0, NONULL (AliasFmt), alias_format_str, (unsigned long) ((ALIAS **) m->data)[num], M_FORMAT_ARROWCURSOR); + mutt_FormatString (s, slen, 0, MuttIndexWindow->cols, NONULL (AliasFmt), alias_format_str, (unsigned long) ((ALIAS **) m->data)[num], M_FORMAT_ARROWCURSOR); } static int alias_tag (MUTTMENU *menu, int n, int m) |