diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-14 13:08:46 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-14 13:08:46 +0000 |
commit | b3cc1b9eb9e4df9c7c753ca29b5f62ef5096c258 (patch) | |
tree | 57df2433f47111ee8d4b472b8e153c80bce02809 /compose.c | |
parent | d455fa10e0ff12bdb5d2b2736200e89469db396c (diff) |
Mixmaster user interface beautification.
Diffstat (limited to 'compose.c')
-rw-r--r-- | compose.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -225,27 +225,31 @@ static int pgp_send_menu (int bits, int *redraw) static void redraw_mix_line (LIST *chain) { int c; + char *t; mvaddstr (HDR_MIX, 0, " Mix: "); if (!chain) { - addstr ("no"); + addstr ("<no chain defined>"); clrtoeol (); return; } for (c = 12; chain; chain = chain->next) { - if (c + mutt_strlen ((char *) chain->data) + 2 >= COLS) + t = chain->data; + if (t && t[0] == '0' && t[1] == '\0') + t = "<random>"; + + if (c + mutt_strlen (t) + 2 >= COLS) break; - - addstr (NONULL((char *) chain->data)); + addstr (NONULL(t)); if (chain->next) addstr (", "); - c += mutt_strlen ((char *) chain->data) + 2; + c += mutt_strlen (t) + 2; } } #endif |