1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

do not reset true colour bit on colour reset

fixes #710
This commit is contained in:
ailin-nemui 2017-05-27 00:12:54 +02:00
parent aac20b1513
commit d61c54c32b

View File

@ -114,7 +114,6 @@ static void update_cmd_color(unsigned char cmd, int *color)
if (cmd & LINE_COLOR_BG) {
/* set background color */
*color &= FGATTR;
*color &= ~ATTR_FGCOLOR24;
if ((cmd & LINE_COLOR_DEFAULT) == 0)
*color |= (cmd & 0x0f) << BG_SHIFT;
else {
@ -123,7 +122,6 @@ static void update_cmd_color(unsigned char cmd, int *color)
} else {
/* set foreground color */
*color &= BGATTR;
*color &= ~ATTR_BGCOLOR24;
if ((cmd & LINE_COLOR_DEFAULT) == 0)
*color |= cmd & 0x0f;
else {