aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index fa3f5a40..0ac07e32 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1,4 +1,4 @@
-/* $Id: screen-write.c,v 1.35 2009-02-24 21:49:05 nicm Exp $ */
+/* $Id: screen-write.c,v 1.36 2009-02-25 21:56:46 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -616,7 +616,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
s->cx += width;
/* Draw to the screen if necessary. */
- if (screen_check_selection(s, s->cx, s->cy)) {
+ if (screen_check_selection(s, s->cx - width, s->cy)) {
memcpy(&tc, &s->sel.cell, sizeof tc);
tc.data = gc->data;
tty_write_cmd(ctx->wp, TTY_CELL, &tc);