]> granicus.if.org Git - neomutt/commitdiff
Respect collapse_all after limit (#1685)
authorPietro Cerutti <gahr@gahr.ch>
Tue, 30 Apr 2019 15:25:01 +0000 (16:25 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Apr 2019 15:25:01 +0000 (16:25 +0100)
Issue #1667

index.c

diff --git a/index.c b/index.c
index edaafa7a8a6cc3ddd2c5e4f1c74c31b9946963f6..52206efbd8a408cfa9fbd4a6e693a03fa0b76264 100644 (file)
--- a/index.c
+++ b/index.c
@@ -1684,7 +1684,11 @@ int mutt_index_menu(void)
           else
             menu->current = 0;
           if ((Context->mailbox->msg_count != 0) && ((C_Sort & SORT_MASK) == SORT_THREADS))
+          {
+            if (C_CollapseAll)
+              collapse_all(menu, 0);
             mutt_draw_tree(Context);
+          }
           menu->redraw = REDRAW_FULL;
         }
         if (Context->pattern)