X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=commands.c;h=2617f7ae61a0a7e0ee96bf2bc8d3361626cd2e51;hp=8e247187383ddf4c8667bef350811260dc8c4024;hb=ad303d5eab5c92f9546cc9d3703a24534d6bb5e0;hpb=1951199b744b2104bf7fe60effe5dd0f455aee9c diff --git a/commands.c b/commands.c index 8e24718..2617f7a 100644 --- a/commands.c +++ b/commands.c @@ -204,11 +204,11 @@ void ci_bounce_message (HEADER * h, int *redraw) buf[0] = 0; rfc822_addrcat(buf, sizeof (buf), adr, 1); -#define extra_space (15 + 7 + 2) snprintf (prompt, sizeof (prompt), (h ? _("Bounce message to %s") : _("Bounce messages to %s")), buf); +#define extra_space (15 + 7 + 2) if (m_strwidth(prompt) > COLS - extra_space) { mutt_format_string(prompt, sizeof(prompt), 0, COLS - extra_space, 0, 0, prompt, sizeof(prompt), 0); @@ -216,6 +216,7 @@ void ci_bounce_message (HEADER * h, int *redraw) } else { m_strcat(prompt, sizeof(prompt), "?"); } +#undef extra_space if (query_quadoption (OPT_BOUNCE, prompt) != M_YES) { address_list_wipe(&adr);