From 10f58cb1bc0ec010cc692f504d52adcb6312b8fb Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 4 Nov 2009 15:59:27 +0000 Subject: [PATCH] Ignore the colour on space, /not/ the attributes. --- tty.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tty.c b/tty.c index 1a6315e7..0782e42d 100644 --- a/tty.c +++ b/tty.c @@ -1126,14 +1126,10 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc) /* If the character is space, don't care about foreground. */ if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) { memcpy(&gc2, gc, sizeof gc2); - if (gc->attr & GRID_ATTR_REVERSE) gc2.bg = tc->bg; else gc2.fg = tc->fg; - gc2.attr = tc->attr & ~GRID_ATTR_REVERSE; - gc2.attr |= gc->attr & GRID_ATTR_REVERSE; - gc = &gc2; }