aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt14/files/patch-05
blob: 5cb212c146ba5ac67cab8f434becc07e2e647aa8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- curs_lib.c.bak	Thu Jan 14 14:29:17 1999
+++ curs_lib.c	Sat Feb 13 20:14:02 1999
@@ -132,8 +132,8 @@
 int mutt_yesorno (const char *msg, int def)
 {
   event_t ch;
-  char *yes = _("yes");
-  char *no = _("no");
+  unsigned char *yes = _("yes");
+  unsigned char *no = _("no");
   
   CLEARLINE(LINES-1);
   printw("%s ([%c]/%c): ", msg, def ? *yes : *no,
@@ -145,12 +145,12 @@
     if (ch.ch == -1) return(-1);
     if (CI_is_return (ch.ch))
       break;
-    else if (tolower(ch.ch) == tolower(*yes))
+    else if (tolower(ch.ch) == tolower(*yes) || tolower(ch.ch) == 'y')
     {
       def = 1;
       break;
     }
-    else if (tolower(ch.ch) == tolower(*no))
+    else if (tolower(ch.ch) == tolower(*no) || tolower(ch.ch) == 'n')
     {
       def = 0;
       break;