diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-04 15:59:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-04 15:59:28 +0000 |
commit | e0ff5e2280257e33650a8629b511c54557374a0d (patch) | |
tree | 5f34ffcbf98221bc36b1a3f2404188c0b5468136 | |
parent | fd2435548b9fc22fbb6cdc5ab9e101166beaa31e (diff) |
Ignore the colour on space, /not/ the attributes.
-rw-r--r-- | usr.bin/tmux/tty.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index 07a29190575..c07ac40a83e 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.64 2009/11/04 13:34:26 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.65 2009/11/04 15:59:27 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; } |