aboutsummaryrefslogtreecommitdiff
path: root/window-more.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-23 20:49:01 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-23 20:49:01 +0000
commit6146cab3bd885fe2132ed12ac2593348984f77a4 (patch)
tree4f4dcddc03b7c4bc84460456f07cd99fd0365f62 /window-more.c
parentd2cfbc64a0ae2ed3e867b3d4df35cd89a925e7ef (diff)
downloadrtmux-6146cab3bd885fe2132ed12ac2593348984f77a4.tar.gz
rtmux-6146cab3bd885fe2132ed12ac2593348984f77a4.tar.bz2
rtmux-6146cab3bd885fe2132ed12ac2593348984f77a4.zip
Use reverse so status line etc works in terminals w/o colour.
Diffstat (limited to 'window-more.c')
-rw-r--r--window-more.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/window-more.c b/window-more.c
index 43a269c8..de3386ef 100644
--- a/window-more.c
+++ b/window-more.c
@@ -1,4 +1,4 @@
-/* $Id: window-more.c,v 1.25 2009-01-15 00:51:39 nicm Exp $ */
+/* $Id: window-more.c,v 1.26 2009-01-23 20:49:01 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -180,8 +180,9 @@ 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.fg = options_get_number(&wp->window->options, "mode-fg");
- gc.bg = options_get_number(&wp->window->options, "mode-bg");
+ gc.bg = options_get_number(&wp->window->options, "mode-fg");
+ gc.fg = options_get_number(&wp->window->options, "mode-bg");
+ gc.attr |= GRID_ATTR_REVERSE;
screen_write_puts(ctx, &gc, "%s", hdr);
memcpy(&gc, &grid_default_cell, sizeof gc);
} else