diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-04 15:59:27 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-04 15:59:27 +0000 |
commit | 10f58cb1bc0ec010cc692f504d52adcb6312b8fb (patch) | |
tree | d71e622d1e9fe17ca736a45504fe7b8f136a71bf | |
parent | a94535f318dc0c712327f5c7b3e96a62201ebcab (diff) | |
download | rtmux-10f58cb1bc0ec010cc692f504d52adcb6312b8fb.tar.gz rtmux-10f58cb1bc0ec010cc692f504d52adcb6312b8fb.tar.bz2 rtmux-10f58cb1bc0ec010cc692f504d52adcb6312b8fb.zip |
Ignore the colour on space, /not/ the attributes.
-rw-r--r-- | tty.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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; } |