From: Richard Russon Date: Tue, 7 May 2019 15:37:40 +0000 (+0100) Subject: fix: folder missing from status bar X-Git-Tag: 2019-10-25~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42bb68f211b2f43159773fea3810316b39e33844;p=neomutt fix: folder missing from status bar Fix a typo introduced with the Buffer changes. It lead to '%f' showing '(no mailbox)' all the time. --- diff --git a/status.c b/status.c index 4aca4c5b8..4b12f657e 100644 --- a/status.c +++ b/status.c @@ -149,7 +149,7 @@ static const char *status_format_str(char *buf, size_t buflen, size_t col, int c { mutt_str_strfcpy(tmp, m->desc, sizeof(tmp)); } - else if (m && mutt_buffer_is_empty(m->pathbuf)) + else if (m && !mutt_buffer_is_empty(m->pathbuf)) { mutt_str_strfcpy(tmp, mutt_b2s(m->pathbuf), sizeof(tmp)); mutt_pretty_mailbox(tmp, sizeof(tmp));