summaryrefslogtreecommitdiffstats
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-01-03 20:01:47 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-01-03 20:01:47 +0000
commitb8e616f44555ac74f652375af76da2689afa9147 (patch)
tree8a2d2467a4da6d36ab0a32f2f159d5b816c40491 /screen-redraw.c
parente7f68a089eec93799c098c570c03047f84638a73 (diff)
This was wrong...
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 6f8c1f20..a386b9b0 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -1,4 +1,4 @@
-/* $Id: screen-redraw.c,v 1.2 2008-01-03 19:18:14 nicm Exp $ */
+/* $Id: screen-redraw.c,v 1.3 2008-01-03 20:01:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -138,7 +138,7 @@ screen_redraw_write_string(struct screen_redraw_ctx *ctx, const char *fmt, ...)
va_end(ap);
for (ptr = msg; *ptr != '\0'; ptr++) {
- if (ctx->s->cx > screen_size_x(s))
+ if (ctx->s->cx > screen_last_x(s))
break;
if (*ptr < 0x20)
continue;