X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pattern.c;h=c30a381aaee8c14d787239ff0677ae99eba9a768;hp=dec82b508ce3944c4d632a5ccc86e945ceb57526;hb=b0a700a4558d9bb59395ddcf08565a5e709841e1;hpb=c8ceef3ed6424dcb5a6ec835e7d8d9cc00595372 diff --git a/pattern.c b/pattern.c index dec82b5..c30a381 100644 --- a/pattern.c +++ b/pattern.c @@ -1204,14 +1204,8 @@ int mutt_pattern_func (int op, char *prompt) strfcpy (buf, NONULL (Context->pattern), sizeof (buf)); if (prompt || op != M_LIMIT) - 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) - strncpy (buf, "~A", sizeof (buf)); - else - return (-1); - } mutt_message _("Compiling search pattern...");