mirror of
https://github.com/tmux/tmux.git
synced 2025-01-26 07:58:55 +00:00
Ignore the colour on space, /not/ the attributes.
This commit is contained in:
parent
a94535f318
commit
10f58cb1bc
4
tty.c
4
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 the character is space, don't care about foreground. */
|
||||||
if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) {
|
if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) {
|
||||||
memcpy(&gc2, gc, sizeof gc2);
|
memcpy(&gc2, gc, sizeof gc2);
|
||||||
|
|
||||||
if (gc->attr & GRID_ATTR_REVERSE)
|
if (gc->attr & GRID_ATTR_REVERSE)
|
||||||
gc2.bg = tc->bg;
|
gc2.bg = tc->bg;
|
||||||
else
|
else
|
||||||
gc2.fg = tc->fg;
|
gc2.fg = tc->fg;
|
||||||
gc2.attr = tc->attr & ~GRID_ATTR_REVERSE;
|
|
||||||
gc2.attr |= gc->attr & GRID_ATTR_REVERSE;
|
|
||||||
|
|
||||||
gc = &gc2;
|
gc = &gc2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user