about summary refs log tree commit diff stats
path: root/src/LYMainLoop.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-02-13 12:01:00 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1998-02-13 12:01:00 -0500
commitc82d2a4041724afe1dce249c78c4f034ca6a8d69 (patch)
tree2ba37d862e4b417a690a34a4dfa731a9042addd9 /src/LYMainLoop.c
parent4b034492d7e0a45781e340312e0570e5052c42d9 (diff)
downloadlynx-snapshots-c82d2a4041724afe1dce249c78c4f034ca6a8d69.tar.gz
snapshot of project "lynx", label v2-7-1ac-0_114
Diffstat (limited to 'src/LYMainLoop.c')
-rw-r--r--src/LYMainLoop.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index 925aa7de..9dfd785c 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -2137,16 +2137,23 @@ new_cmd:  /*
 #endif /* NOT_DONE_YET */
 
 	case LYK_QUIT:	/* quit */
-	    _statusline(REALLY_QUIT);
+	    if (LYQuitDefaultYes == TRUE) {
+		_statusline(REALLY_QUIT_Y);
+	    } else {
+		_statusline(REALLY_QUIT_N);
+	    }
 	    c = LYgetch();
-#ifdef QUIT_DEFAULT_YES
-	    if (TOUPPER(c) != 'N' &&
-		c != 7)
-#else
-	    if (TOUPPER(c) == 'Y')
-#endif /* QUIT_DEFAULT_YES */
+	    if (LYQuitDefaultYes == TRUE) {
+		if (TOUPPER(c) != 'N' &&
+		    c != 7) {
+		    return(0);
+		} else {
+		    statusline(NO_CANCEL);
+		    sleep(InfoSecs);
+		}
+	    } else if (TOUPPER(c) == 'Y') {
 		return(0);
-	    else {
+	    } else {
 		statusline(NO_CANCEL);
 		sleep(InfoSecs);
 	    }