summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-23 23:41:47 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-23 23:41:47 +0000
commit66dccee7f98eda7f15370d7cbf5f75856f06fbec (patch)
treec0ad19e4ee4183e8a700b158715686b0af38fa51 /src/fe-text
parenteebfab17cb49997c6a8a57fc519733dbd5bd7e85 (diff)
downloadirssi-66dccee7f98eda7f15370d7cbf5f75856f06fbec.zip
Display bolds with the current_theme->default_color color, not with the
"default color" (0) since it doesn't seem to work right with all terminals. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@531 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-printtext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-text/gui-printtext.c b/src/fe-text/gui-printtext.c
index a38aa4c8..2de15309 100644
--- a/src/fe-text/gui-printtext.c
+++ b/src/fe-text/gui-printtext.c
@@ -186,7 +186,10 @@ static void get_colors(int flags, int *fg, int *bg)
}
if (*fg == 8) *fg |= ATTR_COLOR8;
- if (flags & PRINTFLAG_BOLD) *fg |= 8;
+ if (flags & PRINTFLAG_BOLD) {
+ if (*fg == 0) *fg = current_theme->default_color;
+ *fg |= 8;
+ }
if (flags & PRINTFLAG_UNDERLINE) *fg |= ATTR_UNDERLINE;
if (flags & PRINTFLAG_BLINK) *bg |= 0x80;
}