From 16a9deb5ef9f3f6582f971ee2294078285755ad5 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 24 Nov 2005 12:50:27 +0000 Subject: [PATCH] mutt/2142 suggests that the change from pattern.c,3.14 -> 3.15 causes inconsistency and confusion. Reverting the change; adding a helpful message to the status line. --- curs_main.c | 2 ++ pattern.c | 9 +-------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/curs_main.c b/curs_main.c index 71cf6063c..01c45db5d 100644 --- a/curs_main.c +++ b/curs_main.c @@ -868,6 +868,8 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); mutt_draw_tree (Context); menu->redraw = REDRAW_FULL; } + if (Context->pattern) + mutt_message _("To view all messages, limit to \"all\"."); break; case OP_QUIT: diff --git a/pattern.c b/pattern.c index 0e21f5958..f2bfa4d86 100644 --- a/pattern.c +++ b/pattern.c @@ -1202,15 +1202,8 @@ int mutt_pattern_func (int op, char *prompt) int i; strfcpy (buf, NONULL (Context->pattern), sizeof (buf)); - if (mutt_get_field (prompt, buf, sizeof (buf), M_PATTERN | M_CLEAR) != 0) + if (mutt_get_field (prompt, buf, sizeof (buf), M_PATTERN | M_CLEAR) != 0 || !buf[0]) return (-1); - if (!buf[0]) - { - if (op == M_LIMIT) - strfcpy (buf, "~A", sizeof(buf)); - else - return -1; - } mutt_message _("Compiling search pattern..."); -- 2.40.0