From 574c090bb2aece4cafd85a4ce28ef1ecbfeff693 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Tue, 30 Apr 2019 16:25:01 +0100 Subject: [PATCH] Respect collapse_all after limit (#1685) Issue #1667 --- index.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.c b/index.c index edaafa7a8..52206efbd 100644 --- 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) -- 2.40.0