aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 356c2845..d1ec0cb9 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.86 2009-03-29 11:18:28 nicm Exp $ */
+/* $Id: tty.c,v 1.87 2009-03-30 20:14:50 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -384,7 +384,6 @@ void
tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int oy)
{
const struct grid_cell *gc;
- struct grid_cell tmp_gc;
const struct grid_utf8 *gu;
u_int i, sx;
@@ -403,8 +402,8 @@ tty_draw_line(struct tty *tty, struct screen *s, u_int py, u_int oy)
tty_cursor(tty, i, py, oy);
if (screen_check_selection(s, i, py)) {
- memcpy(&tmp_gc, &s->sel.cell, sizeof tmp_gc);
- tty_cell(tty, &tmp_gc, gu);
+ s->sel.cell.data = gc->data;
+ tty_cell(tty, &s->sel.cell, gu);
} else
tty_cell(tty, gc, gu);
}