about summary refs log tree commit diff stats
path: root/src/LYCurses.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2004-07-01 00:09:10 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2004-07-01 00:09:10 -0400
commitceb4156db8546c98875607dd91a799101b02c22f (patch)
tree23470c5e32d7f12c3346806358dcb2503d2ce282 /src/LYCurses.c
parent06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6 (diff)
downloadlynx-snapshots-ceb4156db8546c98875607dd91a799101b02c22f.tar.gz
snapshot of project "lynx", label v2-8-6dev_5
Diffstat (limited to 'src/LYCurses.c')
-rw-r--r--src/LYCurses.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c
index 00b8093d..3d6646ac 100644
--- a/src/LYCurses.c
+++ b/src/LYCurses.c
@@ -474,12 +474,12 @@ void curses_w_style(WINDOW * win, int style,
 	break;
 
     case STACK_ON:		/* remember the current attributes */
-	if (last_colorattr_ptr > 127) {
+	if (last_colorattr_ptr >= MAX_LAST_STYLES) {
 	    CTRACE2(TRACE_STYLE, (tfp, "........... %s (0x%x) %s\r\n",
 				  "attribute cache FULL, dropping last",
 				  last_styles[last_colorattr_ptr],
 				  "in LynxChangeStyle(curses_w_style)"));
-	    last_colorattr_ptr = 127;
+	    last_colorattr_ptr = MAX_LAST_STYLES - 1;
 	}
 	last_styles[last_colorattr_ptr++] = LYgetattrs(win);
 	/* don't cache style changes for active links */