On Sun, Apr 11, 2010 at 07:05:58PM -0500, Will Fiveash wrote:
I've noticed running the latest dev version of mutt that if I use Cntrl-G cancel when the "Purge 1 deleted message?" confirm message shows up that message stays on the screen. I'm running mutt Mutt 1.5.20 (2010-03-22) in a gnome-terminal with: COLORTERM=gnome-terminal TERM=rxvt in the environment.
The attached patch fixes the problem. I've committed this to tip. me
changeset: 6077:77f7300ed3cc branch: HEAD tag: tip user: Michael Elkins <m...@mutt.org> date: Sun Apr 11 18:30:13 2010 -0700 summary: clear prompt when user cancels with ^G from a yes/no prompt diff -r 25b694a8b8b6 -r 77f7300ed3cc curs_lib.c --- a/curs_lib.c Sun Apr 11 16:19:46 2010 -0700 +++ b/curs_lib.c Sun Apr 11 18:30:13 2010 -0700 @@ -278,6 +278,12 @@ addstr ((char *) (def == M_YES ? yes : no)); mutt_refresh (); } + else + { + /* when the users cancels with ^G, clear the message stored with + * mutt_message() so it isn't displayed when the screen is refreshed. */ + mutt_clear_error(); + } return (def); }