summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-05-27 00:12:54 +0200
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-05-27 00:12:54 +0200
commitd61c54c32b6383186a8f32d852594cc4e10240d9 (patch)
treea834b6d476d929b70a515e306b91e7125361a5eb
parentaac20b15132e0facee14bd9b721d6bfa9251a172 (diff)
downloadirssi-d61c54c32b6383186a8f32d852594cc4e10240d9.zip
do not reset true colour bit on colour reset
fixes #710
-rw-r--r--src/fe-text/textbuffer-view.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c
index 58bd36fb..cb066f5e 100644
--- a/src/fe-text/textbuffer-view.c
+++ b/src/fe-text/textbuffer-view.c
@@ -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 {