aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-11 14:13:52 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-11 14:13:52 +0000
commit0ec1ce005c98f4fa1813cf47e4bcc11d8cd4b523 (patch)
tree91a9f9bb7432bfaeb28b0be6c5280582b045181d /tty.c
parentf0cb57d8ac1a342c862320e30728ae2c1ea556aa (diff)
downloadrtmux-0ec1ce005c98f4fa1813cf47e4bcc11d8cd4b523.tar.gz
rtmux-0ec1ce005c98f4fa1813cf47e4bcc11d8cd4b523.tar.bz2
rtmux-0ec1ce005c98f4fa1813cf47e4bcc11d8cd4b523.zip
Sync OpenBSD patchset 322:
Permit options such as status-bg to be configured using the entire 256 colour palette by setting "colour0" to "colour255".
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index d7bf11a6..339826e8 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.131 2009-08-31 22:30:15 tcunha Exp $ */
+/* $Id: tty.c,v 1.132 2009-09-11 14:13:52 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -520,7 +520,8 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int ox, u_int oy)
if (screen_check_selection(s, i, py)) {
memcpy(&tmpgc, &s->sel.cell, sizeof tmpgc);
tmpgc.data = gc->data;
- tmpgc.flags = gc->flags;
+ tmpgc.flags = gc->flags & ~(GRID_FLAG_FG256|GRID_FLAG_BG256);
+ tmpgc.flags |= s->sel.cell.flags & (GRID_FLAG_FG256|GRID_FLAG_BG256);
tty_cell(tty, &tmpgc, gu);
} else
tty_cell(tty, gc, gu);