From 582f83c279049e207637ce66372390244cb2956f Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Tue, 20 Dec 2016 17:43:50 +0000 Subject: [PATCH] fix: restore limit current thread This feature was accidentally disabled by a bad merge. --- curs_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/curs_main.c b/curs_main.c index 480ad0855..13a1d1698 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1490,8 +1490,10 @@ int mutt_index_menu (void) FREE (&Context->pattern); Context->pattern = safe_strdup (buf); } - if ((op == OP_TOGGLE_READ && mutt_pattern_func (MUTT_LIMIT, NULL) == 0) || - mutt_pattern_func (MUTT_LIMIT, _("Limit to messages matching: ")) == 0) + + if (((op == OP_LIMIT_CURRENT_THREAD) && mutt_limit_current_thread(CURHDR)) || + ((op == OP_MAIN_LIMIT) && (mutt_pattern_func (MUTT_LIMIT, + _("Limit to messages matching: ")) == 0))) { if (menu->oldcurrent >= 0) { -- 2.40.0