1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-02-06 00:15:26 +00:00

Just a newline on the quit [confirm] prompt should not quit.

That is just too easy to type by accident. Only accept y, Y and EOF
(EOF for when there is an error).
This commit is contained in:
Olaf Seibert
2015-07-22 01:22:28 +02:00
parent c9f494a3df
commit 60a4cd1c9a

View File

@@ -599,11 +599,9 @@ fc_quit(struct cmd_s *cm)
printf("Are you sure you want to quit? [Confirm]");
fe_ctycmforce();
switch (cminchar()) {
case '\r':
case '\n':
case 'y':
case 'Y':
case -1: /* EOF */
case EOF: /* EOF */
break;
default: /* Anything else prevents quit */
return;