From 41d619cb8291c15d74dc2884b7dfc969985b795c Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 17 Sep 2006 19:06:54 +0000 Subject: [PATCH] Fix %k and %K mappings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4355 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/term-curses.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-text/term-curses.c b/src/fe-text/term-curses.c index cd088705..9306d030 100644 --- a/src/fe-text/term-curses.c +++ b/src/fe-text/term-curses.c @@ -270,8 +270,8 @@ static int get_attr(int color) if (!term_use_colors) attr = (color & 0x70) ? A_REVERSE : 0; - else if (((color & 0x0f) == 8) && (color & ATTR_BOLD) == 0) - attr = (A_DIM | COLOR_PAIR(63)); + else if ((color & 0xff) == 8 || (color & (0xff | ATTR_RESETFG)) == 0) + attr = COLOR_PAIR(63); else if ((color & 0x77) == 0) attr = A_NORMAL; else {