summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2006-09-17 19:06:54 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-09-17 19:06:54 +0000
commit41d619cb8291c15d74dc2884b7dfc969985b795c (patch)
treebe19da95898b5d1d338185e730b991bb54b95b2d /src
parente3cf9a4be5a05f2fbe39870e1caf4d7f03f95eef (diff)
downloadirssi-41d619cb8291c15d74dc2884b7dfc969985b795c.zip
Fix %k and %K mappings.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4355 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/term-curses.c4
1 files 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 {