diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-08 16:19:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-12-08 16:19:51 +0000 |
commit | 7a82e86827e3d863a6dc4f1d50985f287d1ff86b (patch) | |
tree | 34bcc703d5d79065c5ef364be2a6ebfbc13cf6d0 /screen-redraw.c | |
parent | f008d303e75c185eebcbb493b4e6d49bb400f694 (diff) | |
download | rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.tar.gz rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.tar.bz2 rtmux-7a82e86827e3d863a6dc4f1d50985f287d1ff86b.zip |
Make window options work the same was as session options, add mode-fg/mode-bg options, force -g for global on set/show/setw/showw/
Diffstat (limited to 'screen-redraw.c')
-rw-r--r-- | screen-redraw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index 1b6b5b47..4f6286f5 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1,4 +1,4 @@ -/* $Id: screen-redraw.c,v 1.13 2008-09-26 06:45:26 nicm Exp $ */ +/* $Id: screen-redraw.c,v 1.14 2008-12-08 16:19:51 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -124,7 +124,7 @@ void screen_redraw_cell(struct screen_redraw_ctx *ctx, u_int px, u_int py) { const struct grid_cell *gc; - struct grid_cell hc; + struct grid_cell tc; if (px != ctx->s->cx || py != ctx->s->cy) { ctx->s->cx = px; @@ -134,9 +134,9 @@ screen_redraw_cell(struct screen_redraw_ctx *ctx, u_int px, u_int py) gc = grid_view_peek_cell(ctx->s->grid, px, py); if (screen_check_selection(ctx->s, px, py)) { - memcpy(&hc, gc, sizeof hc); - hc.attr |= GRID_ATTR_REVERSE; - ctx->write(ctx->data, TTY_CELL, &hc); + memcpy(&tc, &ctx->s->sel.cell, sizeof tc); + tc.data = gc->data; + ctx->write(ctx->data, TTY_CELL, &tc); } else ctx->write(ctx->data, TTY_CELL, gc); ctx->s->cx++; |