summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2010-04-11 18:30:13 -0700
committerMichael Elkins <me@sigpipe.org>2010-04-11 18:30:13 -0700
commite4db1b8be18d6cb5b925cb79b4a7c74db8a2829f (patch)
tree957673dc447214732abf67341af08aeb41ca92a5 /curs_lib.c
parentdc578827de16f396d31552a1fc9eaafedd3edf03 (diff)
clear prompt when user cancels with ^G from a yes/no prompt
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/curs_lib.c b/curs_lib.c
index 459d559a..5efd36ee 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -278,6 +278,12 @@ int mutt_yesorno (const char *msg, int def)
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);
}