Re: mutt/2142: <untag-pattern> with empty argument does nothing
The following reply was made to PR mutt/2142; it has been noted by GNATS.
From: Vincent Lefevre <vincent@xxxxxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc:
Subject: Re: mutt/2142: <untag-pattern> with empty argument does nothing
Date: Sun, 4 Dec 2005 02:23:08 +0100
On 2005-11-24 13:55:01 +0100, Thomas Roessler wrote:
> diff -u -r3.34 curs_main.c
> --- curs_main.c 4 Oct 2005 04:29:09 -0000 3.34
> +++ curs_main.c 24 Nov 2005 12:48:46 -0000
> @@ -868,6 +868,8 @@
> mutt_draw_tree (Context);
> menu->redraw = REDRAW_FULL;
> }
> + if (Context->pattern)
> + mutt_message _("To view all messages, limit to \"all\".");
> break;
There's a problem with this: it overwrites the possible message
"No messages matched criteria." from pattern.c. I suggest to
remove this and in pattern.c, replace
return (-1);
by
{
if (op == M_LIMIT && Context->pattern)
mutt_message _("To view all messages, limit to \"all\".");
return (-1);
}
after the "if (mutt_get_field ...)" line.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA