mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
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
This commit is contained in:
parent
eebfab17cb
commit
66dccee7f9
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue