aboutsummaryrefslogtreecommitdiff
path: root/window-more.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-09 16:50:57 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-09 16:50:57 +0000
commit88b83be07b0c080a460db393d292c9a0b3c05c39 (patch)
tree7cfb7a0043779a3d01ac7e6d477a8ef7c83f5647 /window-more.c
parent65a28912ebf180f736f29fcecc3c87223e5ee533 (diff)
downloadrtmux-88b83be07b0c080a460db393d292c9a0b3c05c39.tar.gz
rtmux-88b83be07b0c080a460db393d292c9a0b3c05c39.tar.bz2
rtmux-88b83be07b0c080a460db393d292c9a0b3c05c39.zip
Sync OpenBSD patchset 220:
If colours are not supported by the terminal, try to emulate a coloured background by setting or clearing the reverse attribute. This makes a few applications which don't use the reverse attribute themselves a little happier, and allows the status, message and mode options to have default attributes and fg/bg options that work as expected when set as reverse.
Diffstat (limited to 'window-more.c')
-rw-r--r--window-more.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/window-more.c b/window-more.c
index 7afcf6ca..f0e611d7 100644
--- a/window-more.c
+++ b/window-more.c
@@ -1,4 +1,4 @@
-/* $Id: window-more.c,v 1.35 2009-07-28 23:11:18 tcunha Exp $ */
+/* $Id: window-more.c,v 1.36 2009-08-09 16:50:57 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -176,8 +176,8 @@ window_more_write_line(
size = xsnprintf(hdr, sizeof hdr,
"[%u/%u]", data->top, ARRAY_LENGTH(&data->list));
screen_write_cursormove(ctx, screen_size_x(s) - size, 0);
- gc.bg = options_get_number(&wp->window->options, "mode-fg");
- gc.fg = options_get_number(&wp->window->options, "mode-bg");
+ gc.fg = options_get_number(&wp->window->options, "mode-fg");
+ gc.bg = options_get_number(&wp->window->options, "mode-bg");
gc.attr |= options_get_number(&wp->window->options, "mode-attr");
screen_write_puts(ctx, &gc, "%s", hdr);
memcpy(&gc, &grid_default_cell, sizeof gc);