Changeset 5104:9a9771649c12

Show
Ignore:
Timestamp:
2007-04-09 16:03:55 (21 months ago)
Author:
Michael Elkins <me@…>
Branch:
HEAD
Message:

Use mutt_pretty_size() to format '%s' in $folder_format so it is similar to '%c' in $hdr_format

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • browser.c

    r5052 r5104  
    266266      if (folder->ff->st != NULL) 
    267267      { 
    268         snprintf (tmp, sizeof (tmp), "%%%sld", fmt); 
    269         snprintf (dest, destlen, tmp, (long) folder->ff->st->st_size); 
     268        mutt_pretty_size(fn, sizeof(fn), folder->ff->st->st_size); 
     269        snprintf (tmp, sizeof (tmp), "%%%ss", fmt); 
     270        snprintf (dest, destlen, tmp, fn); 
    270271      } 
    271272      else 
    272273        mutt_format_s (dest, destlen, fmt, ""); 
    273274      break; 
    274        
     275 
    275276    case 't': 
    276277      snprintf (tmp, sizeof (tmp), "%%%sc", fmt); 
    277278      snprintf (dest, destlen, tmp, folder->ff->tagged ? '*' : ' '); 
    278279      break; 
    279        
     280 
    280281    case 'u': 
    281282      if (folder->ff->st != NULL) 
     
    292293        mutt_format_s (dest, destlen, fmt, ""); 
    293294      break; 
    294        
     295 
    295296    default: 
    296297      snprintf (tmp, sizeof (tmp), "%%%sc", fmt);