From 87065d4513c81b69b6d4612f8c02319ddb82e05d Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Thu, 19 Dec 2019 17:15:52 +0000 Subject: [PATCH] Revert "Revert "browser: fix directory view"" This reverts commit 450d4b0ec0648832e6497616ac8bb34c2cea291e. I don't know what was broken by this fix, but this fix is definitely needed. I'll handle the fallout separately. Fixes #2042 --- browser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser.c b/browser.c index d9893b96d..29c280a5d 100644 --- a/browser.c +++ b/browser.c @@ -801,7 +801,7 @@ static int examine_directory(struct Menu *menu, struct BrowserState *state, struct MailboxNode *np = NULL; STAILQ_FOREACH(np, &ml, entries) { - if (mutt_str_strcmp(mutt_b2s(buf), mailbox_path(np->mailbox)) != 0) + if (mutt_str_strcmp(mutt_b2s(buf), mailbox_path(np->mailbox)) == 0) break; } -- 2.45.2