]> granicus.if.org Git - mutt/commitdiff
Another mutt_yesorno() change, in order to correctly interpret a C-g.
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 5 Jan 2003 22:02:37 +0000 (22:02 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 5 Jan 2003 22:02:37 +0000 (22:02 +0000)
commands.c

index d4c77ea0a90f9f82dcdefc833536fa9737004f1d..20dd5b73fe6e9e78b352158d54af9c83fc90a533 100644 (file)
@@ -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 */