]> granicus.if.org Git - neomutt/commitdiff
fix <change-folder> when $change_folder_next is set
authorRichard Russon <rich@flatcap.org>
Wed, 25 Sep 2019 12:30:22 +0000 (13:30 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 1 Oct 2019 10:11:59 +0000 (11:11 +0100)
index.c

diff --git a/index.c b/index.c
index 226c0cb4fc05c5939dcfa5e47980da8f1b7b31b0..fee7923cc02364dbed4bdf9d8625c1dadb2bad9e 100644 (file)
--- a/index.c
+++ b/index.c
@@ -2265,7 +2265,7 @@ int mutt_index_menu(void)
         else
         {
           if (C_ChangeFolderNext && Context && Context->mailbox &&
-              mutt_buffer_is_empty(&Context->mailbox->pathbuf))
+              !mutt_buffer_is_empty(&Context->mailbox->pathbuf))
           {
             mutt_buffer_strcpy(folderbuf, mailbox_path(Context->mailbox));
             mutt_buffer_pretty_mailbox(folderbuf);