Show
Ignore:
Timestamp:
2000-05-09 08:19:26 (9 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Edmund Grimley Evans' UTF-8 patch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • commands.c

    r1640 r1716  
    218218  rfc822_write_address (buf, sizeof (buf), adr); 
    219219 
    220   snprintf (prompt, (COLS > sizeof(prompt) ? sizeof(prompt) : COLS) - 13,  
     220#define extra_space (15 + 7 + 2) 
     221  /* 
     222   * This is the printing width of "...? ([y=yes]/n=no): ?" plus 2 
     223   * for good measure. This is not ideal. FIXME. 
     224   */ 
     225  snprintf (prompt, sizeof (prompt), 
    221226           (h ? _("Bounce message to %s") : _("Bounce messages to %s")), buf); 
    222   strcat(prompt, "...?"); 
     227  mutt_format_string (prompt, sizeof (prompt), 
     228                      0, COLS-extra_space, 0, 0, 
     229                      prompt, sizeof (prompt)); 
     230  strcat (prompt, "...?"); 
    223231  if (mutt_yesorno (prompt, 1) != 1) 
    224232  {