diff options
author | Michael Elkins <me@sigpipe.org> | 2010-04-11 18:30:13 -0700 |
---|---|---|
committer | Michael Elkins <me@sigpipe.org> | 2010-04-11 18:30:13 -0700 |
commit | e4db1b8be18d6cb5b925cb79b4a7c74db8a2829f (patch) | |
tree | 957673dc447214732abf67341af08aeb41ca92a5 /curs_lib.c | |
parent | dc578827de16f396d31552a1fc9eaafedd3edf03 (diff) |
clear prompt when user cancels with ^G from a yes/no prompt
Diffstat (limited to 'curs_lib.c')
-rw-r--r-- | curs_lib.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); } |