int count, optional = (flags & M_FORMAT_OPTIONAL);
MUTTMENU *menu = (MUTTMENU *) data;
int count, optional = (flags & M_FORMAT_OPTIONAL);
MUTTMENU *menu = (MUTTMENU *) data;
#ifdef USE_COMPRESSED
if (Context && Context->compressinfo && Context->realpath) {
if ((p = strrchr (Context->realpath, '/')))
#ifdef USE_COMPRESSED
if (Context && Context->compressinfo && Context->realpath) {
if ((p = strrchr (Context->realpath, '/')))
}
else
#endif
if (Context && Context->path) {
if ((p = strrchr (Context->path, '/')))
}
else
#endif
if (Context && Context->path) {
if ((p = strrchr (Context->path, '/')))
snprintf (buf, buflen, fmt, tmp);
break;
snprintf (buf, buflen, fmt, tmp);
break;
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
#ifdef USE_COMPRESSED
if (Context && Context->compressinfo && Context->realpath) {
snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
#ifdef USE_COMPRESSED
if (Context && Context->compressinfo && Context->realpath) {
snprintf (buf, buflen, fmt, tmp);
break;
snprintf (buf, buflen, fmt, tmp);
break;
* if we have enough space for buffer, format lines to $COLS-$SidebarWidth
* only to not wrap past end of screen
*/
* if we have enough space for buffer, format lines to $COLS-$SidebarWidth
* only to not wrap past end of screen
*/
- mutt_FormatString (buf, (COLS-SW)>len?len:(COLS-SW), p, status_format_str,
+ int width = COLS - SW;
+ mutt_FormatString (buf, (width >= len ? len : (width + 1)),
+ p, status_format_str,