From: Thomas Roessler Date: Sun, 5 Jan 2003 22:02:37 +0000 (+0000) Subject: Another mutt_yesorno() change, in order to correctly interpret a C-g. X-Git-Tag: mutt-1-5-4-rel~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=597f63e3c6b49a45f47784db48563622d3474ef5;p=mutt Another mutt_yesorno() change, in order to correctly interpret a C-g. --- diff --git a/commands.c b/commands.c index d4c77ea0..20dd5b73 100644 --- a/commands.c +++ b/commands.c @@ -904,9 +904,11 @@ void mutt_edit_content_type (HEADER *h, BODY *b, FILE *fp) if (!h && b->type == TYPETEXT && charset_changed) { + int r; snprintf (tmp, sizeof (tmp), _("Convert to %s upon sending?"), mutt_get_parameter ("charset", b->parameter)); - b->noconv = !mutt_yesorno (tmp, !b->noconv); + if ((r = mutt_yesorno (tmp, !b->noconv)) != -1) + b->noconv = (r == M_NO); } /* inform the user */