diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-04 23:10:43 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-04 23:10:43 +0000 |
commit | 27c2b98f5f56674223dedb01a3ddcd41c366bda3 (patch) | |
tree | 74b68bb8cfd93e5ce4a679ff58f934429cce7bf0 /tty.c | |
parent | 344a241c28c56d3fdcae9bcf9ea8fa23e6d26131 (diff) | |
download | rtmux-27c2b98f5f56674223dedb01a3ddcd41c366bda3.tar.gz rtmux-27c2b98f5f56674223dedb01a3ddcd41c366bda3.tar.bz2 rtmux-27c2b98f5f56674223dedb01a3ddcd41c366bda3.zip |
Sync OpenBSD patchset 489:
Ignore the colour on space, /not/ the attributes.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.168 2009-11-04 23:09:48 tcunha Exp $ */ +/* $Id: tty.c,v 1.169 2009-11-04 23:10:43 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1131,14 +1131,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; } |