diff options
author | 2009-11-04 15:59:27 +0000 | |
---|---|---|
committer | 2009-11-04 15:59:27 +0000 | |
commit | a543161c11e5d315c2c7cc5946ee4c55c750fae6 (patch) | |
tree | 0956f7fa3eecead8907f2ca249e491416de76c4c | |
parent | Fix the reverse emulation when a terminal doesn't have setab to use the correct (diff) | |
download | wireguard-openbsd-a543161c11e5d315c2c7cc5946ee4c55c750fae6.tar.xz wireguard-openbsd-a543161c11e5d315c2c7cc5946ee4c55c750fae6.zip |
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; } |