From 8a160f2d589b1ea9dcc6859dd34ac6480605e478 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 30 Mar 2009 20:14:50 +0000 Subject: - Unbreak selection colouring. - Get UTF-8 check the right way round... --- screen-write.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index da5b8ba0..526c6546 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $Id: screen-write.c,v 1.42 2009-03-29 11:18:28 nicm Exp $ */ +/* $Id: screen-write.c,v 1.43 2009-03-30 20:14:50 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -617,9 +617,10 @@ screen_write_cell( s->cx += width; /* Draw to the screen if necessary. */ - if (screen_check_selection(s, s->cx - width, s->cy)) + if (screen_check_selection(s, s->cx - width, s->cy)) { + s->sel.cell.data = gc->data; tty_write_cmd(ctx->wp, TTY_CELL, &s->sel.cell, &gu); - else + } else tty_write_cmd(ctx->wp, TTY_CELL, gc, &gu); } -- cgit