summaryrefslogtreecommitdiff
path: root/www/lynx-current/patches/patch-ab
blob: 418ef218bfa0b6070193710ebbfbd1e023d4bc13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.3 2002/08/21 12:01:04 blymn Exp $

--- src/LYCurses.c.orig	Wed Aug 21 21:16:48 2002
+++ src/LYCurses.c
@@ -564,9 +564,7 @@ PUBLIC void curses_style ARGS2(
 }
 #endif /* USE_COLOR_STYLE */
 
-#ifndef USE_SLANG
 PRIVATE BOOL lynx_called_initscr = FALSE;
-#endif
 
 #if defined(HAVE_USE_DEFAULT_COLORS) && defined(USE_DEFAULT_COLORS)
 /*
@@ -1274,7 +1272,7 @@ PUBLIC void stop_curses NOARGS
 	lynx_nl2crlf(TRUE);
 	lynx_enable_mouse (0);
 #if (!defined(WIN_EX) || defined(__CYGWIN__))	/* @@@ */
-	if(LYscreen) {
+	if(LYscreen || lynx_called_initscr) {
 	    endwin();	/* stop curses */
 	    LYDELSCR();
 	}