]> granicus.if.org Git - neomutt/commitdiff
fix: folder missing from status bar
authorRichard Russon <rich@flatcap.org>
Tue, 7 May 2019 15:37:40 +0000 (16:37 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 7 May 2019 15:37:42 +0000 (16:37 +0100)
Fix a typo introduced with the Buffer changes.
It lead to '%f' showing '(no mailbox)' all the time.

status.c

index 4aca4c5b8abb6e35bcc6399ebc38032cf23cb305..4b12f657ec02be0583ce3f8666689ea480bc02b9 100644 (file)
--- 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));