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>2006-09-10 23:47:00 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2006-09-10 23:47:00 -0400
commit24a47fee30cfc3e2da82571f9c13c896a601a8df (patch)
tree34e6d98955850ffba8d43bc0b9bf7f8a1143f045 /src/LYCurses.c
parentc6cec39ad0f9474e910e321e1b4d95054f5529a1 (diff)
downloadlynx-snapshots-24a47fee30cfc3e2da82571f9c13c896a601a8df.tar.gz
snapshot of project "lynx", label v2-8-6pre_3
Diffstat (limited to 'src/LYCurses.c')
-rw-r--r--src/LYCurses.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c
index cbe949e1..7f1c371a 100644
--- a/src/LYCurses.c
+++ b/src/LYCurses.c
@@ -711,7 +711,7 @@ char *LYgetTableString(int code)
     int mask = decode_mono_code(code);
     int second = encode_color_attr(mask);
     int pair = PAIR_NUMBER(second);
-    int mono = second & A_ATTRIBUTES;
+    int mono = mask & A_ATTRIBUTES;
     int fg = lynx_color_pairs[pair].fg;
     int bg = lynx_color_pairs[pair].bg;
     unsigned n;
@@ -722,7 +722,7 @@ char *LYgetTableString(int code)
     if (fg == 0 && bg == 0) {
 	fg = COLOR_WHITE;
     }
-    CTRACE((tfp, "%#x -> %#x (%d) fg=%d, bg=%d\n", mask, second, pair, fg, bg));
+    CTRACE((tfp, "%#x -> %#x (mono %#x pair %d) fg=%d, bg=%d\n", mask, second, mono, pair, fg, bg));
     for (n = 0; n < TABLESIZE(Mono_Attrs); ++n) {
 	if ((Mono_Attrs[n].code & mono) != 0) {
 	    if (result != 0)
@@ -1870,7 +1870,9 @@ void LYwaddnstr(WINDOW * w GCC_UNUSED,
 	    wmove(sub, y0, x0);
 	    LYwideLines = TRUE;
 	    LYwaddnstr(sub, src, len);
+	    getyx(sub, y0, x0);
 	    delwin(sub);
+	    wmove(LYwin, y0, x0);
 	}
 	LYwideLines = FALSE;