]> granicus.if.org Git - mutt/commitdiff
A recent change causes all mutt_yesorno prompts to come out as
authorDavid Shaw <dshaw@jabberwocky.com>
Thu, 9 Jan 2003 17:23:23 +0000 (17:23 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Thu, 9 Jan 2003 17:23:23 +0000 (17:23 +0000)
[yes]/yes or [no]/no.  Here's a fix.

curs_lib.c

index 695a3a0116a6ca37768b52568882ea008bc7aca3..0bb9f3b35ac2abfe9c5fac5ba01ae51390922cfe 100644 (file)
@@ -182,7 +182,7 @@ int mutt_yesorno (const char *msg, int def)
    * to fit.
    */
   answer_string = safe_malloc (COLS + 1);
-  snprintf (answer_string, COLS + 1, " ([%s]/%s): ", def == M_YES ? yes : no, def == M_NO ? no : yes);
+  snprintf (answer_string, COLS + 1, " ([%s]/%s): ", def == M_YES ? yes : no, def == M_YES ? no : yes);
   answer_string_len = strlen (answer_string);
   printw ("%.*s%s", COLS - answer_string_len, msg, answer_string);
   FREE (&answer_string);