Ignore the colour on space, /not/ the attributes.

pull/1/head
Nicholas Marriott 2009-11-04 15:59:27 +00:00
parent a94535f318
commit 10f58cb1bc
1 changed files with 0 additions and 4 deletions

4
tty.c
View File

@ -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;
}