From: David Shaw Date: Thu, 9 Jan 2003 17:23:23 +0000 (+0000) Subject: A recent change causes all mutt_yesorno prompts to come out as X-Git-Tag: mutt-1-5-4-rel~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22520f13eb941e48c57b8706b7b17e65638bbcf1;p=mutt A recent change causes all mutt_yesorno prompts to come out as [yes]/yes or [no]/no. Here's a fix. --- diff --git a/curs_lib.c b/curs_lib.c index 695a3a01..0bb9f3b3 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -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);