1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-07 02:54:19 -04:00

Print the text with the "default" color (whatever is set with xterm -fg) -

not the theme->default_color.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@471 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-16 15:35:08 +00:00 committed by cras
parent d3dbd863ae
commit b3523dd4f8

View File

@ -168,12 +168,12 @@ static void get_colors(int flags, int *fg, int *bg)
if (flags & PRINTFLAG_MIRC_COLOR) {
/* mirc colors */
*fg = *fg < 0 || *fg > 16 ?
current_theme->default_color : mirc_colors[*fg];
/*current_theme->default_color*/0 : mirc_colors[*fg];
*bg = *bg < 0 || *bg > 16 ? 0 : mirc_colors[*bg];
} else {
/* default colors */
*fg = *fg < 0 || *fg > 15 ?
current_theme->default_color : *fg;
/*current_theme->default_color*/0 : *fg;
*bg = *bg < 0 || *bg > 15 ? 0 : *bg;
if (*fg > 8) *fg -= 8;