X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=status.c;h=09a9df81453f46ceedb4c15ce76505ab61693601;hb=e43d5aea488f4e6d39b1b193a5af607fd034ca79;hp=3d175f65d72c972265b1e1d6f1721e256b88bb64;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1;p=apps%2Fmadmutt.git diff --git a/status.c b/status.c index 3d175f6..09a9df8 100644 --- a/status.c +++ b/status.c @@ -16,6 +16,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mutt_menu.h" #include "mutt_curses.h" @@ -93,6 +97,14 @@ status_format_str (char *buf, size_t buflen, char op, const char *src, case 'f': snprintf (fmt, sizeof(fmt), "%%%ss", prefix); +#ifdef USE_COMPRESSED + if (Context && Context->compressinfo && Context->realpath) + { + strfcpy (tmp, Context->realpath, sizeof (tmp)); + mutt_pretty_mailbox (tmp); + } + else +#endif if (Context && Context->path) { strfcpy (tmp, Context->path, sizeof (tmp)); @@ -266,7 +278,7 @@ status_format_str (char *buf, size_t buflen, char op, const char *src, if (!optional) { snprintf (fmt, sizeof(fmt), "%%%ss", prefix); - snprintf (buf, buflen, fmt, Context ? Context->pattern : 0); + snprintf (buf, buflen, fmt, (Context && Context->pattern) ? Context->pattern : ""); } else if (!Context || !Context->pattern) optional = 0;