summaryrefslogtreecommitdiff
path: root/www/lynx-current/patches/patch-ab
diff options
context:
space:
mode:
authorblymn <blymn@pkgsrc.org>2002-08-21 12:01:04 +0000
committerblymn <blymn@pkgsrc.org>2002-08-21 12:01:04 +0000
commitd9f15a7f036b851ded09cb88509311937133bda6 (patch)
treea764e606600084b5091232017ce5f2e7f02a0d9e /www/lynx-current/patches/patch-ab
parent9d531a1780cb65f523626b69a4bbf759b327c2c8 (diff)
downloadpkgsrc-d9f15a7f036b851ded09cb88509311937133bda6.tar.gz
Patched lynx to make sure endwin() is called on exit.
Diffstat (limited to 'www/lynx-current/patches/patch-ab')
-rw-r--r--www/lynx-current/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/lynx-current/patches/patch-ab b/www/lynx-current/patches/patch-ab
new file mode 100644
index 00000000000..418ef218bfa
--- /dev/null
+++ b/www/lynx-current/patches/patch-ab
@@ -0,0 +1,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();
+ }