From: Richard Russon Date: Tue, 20 Dec 2016 17:43:50 +0000 (+0000) Subject: fix: restore limit current thread X-Git-Tag: neomutt-20170113~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=582f83c279049e207637ce66372390244cb2956f;p=neomutt fix: restore limit current thread This feature was accidentally disabled by a bad merge. --- 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) {