changeset: 6673:93c4ae03689e
user: Richard Russon <[email protected]>
date: Thu Jun 09 12:06:10 2016 -0700
link: http://dev.mutt.org/hg/mutt/rev/93c4ae03689e
Fix alignment in the compose menu.
Several of the compose-panel labels didn't use the TITLE_FMT to align
themselves. This causes formatting problems when the width is changed,
e.g. by the NNTP patch.
diffs (36 lines):
diff -r 1fad3bfd4aab -r 93c4ae03689e compose.c
--- a/compose.c Wed Jun 08 13:28:54 2016 +0200
+++ b/compose.c Thu Jun 09 12:06:10 2016 -0700
@@ -110,7 +110,7 @@
static void redraw_crypt_lines (HEADER *msg)
{
- mutt_window_mvaddstr (MuttIndexWindow, HDR_CRYPT, 0, "Security: ");
+ mutt_window_mvprintw (MuttIndexWindow, HDR_CRYPT, 0, TITLE_FMT, "Security:
");
if ((WithCrypto & (APPLICATION_PGP | APPLICATION_SMIME)) == 0)
{
@@ -150,11 +150,11 @@
if ((WithCrypto & APPLICATION_PGP)
&& (msg->security & APPLICATION_PGP) && (msg->security & SIGN))
- printw ("%s%s", _(" sign as: "), PgpSignAs ? PgpSignAs : _("<default>"));
+ printw (TITLE_FMT "%s", _("sign as: "), PgpSignAs ? PgpSignAs :
_("<default>"));
if ((WithCrypto & APPLICATION_SMIME)
&& (msg->security & APPLICATION_SMIME) && (msg->security & SIGN)) {
- printw ("%s%s", _(" sign as: "), SmimeDefaultKey ? SmimeDefaultKey :
_("<default>"));
+ printw (TITLE_FMT "%s", _("sign as: "), SmimeDefaultKey ?
SmimeDefaultKey : _("<default>"));
}
if ((WithCrypto & APPLICATION_SMIME)
@@ -175,7 +175,8 @@
int c;
char *t;
- mutt_window_mvaddstr (MuttIndexWindow, HDR_MIX, 0, " Mix: ");
+ /* L10N: "Mix" refers to the MixMaster chain for anonymous email */
+ mutt_window_mvprintw (MuttIndexWindow, HDR_MIX, 0, TITLE_FMT, _("Mix: "));
if (!chain)
{