This was wrong...

This commit is contained in:
Nicholas Marriott 2008-01-03 20:01:47 +00:00
parent e7f68a089e
commit b8e616f445
2 changed files with 4 additions and 4 deletions

View File

@ -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> * 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); va_end(ap);
for (ptr = msg; *ptr != '\0'; ptr++) { for (ptr = msg; *ptr != '\0'; ptr++) {
if (ctx->s->cx > screen_size_x(s)) if (ctx->s->cx > screen_last_x(s))
break; break;
if (*ptr < 0x20) if (*ptr < 0x20)
continue; continue;

View File

@ -1,4 +1,4 @@
/* $Id: status.c,v 1.16 2008-01-03 19:18:14 nicm Exp $ */ /* $Id: status.c,v 1.17 2008-01-03 20:01:47 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -49,7 +49,7 @@ status_write_client(struct client *c)
screen_redraw_write_string( screen_redraw_write_string(
&ctx, "%d:%s%c ", wl->idx, wl->window->name, flag); &ctx, "%d:%s%c ", wl->idx, wl->window->name, flag);
if (ctx.s->cx > screen_size_x(ctx.s)) if (ctx.s->cx > screen_last_x(ctx.s))
break; break;
} }
screen_redraw_clear_end_of_line(&ctx); screen_redraw_clear_end_of_line(&ctx);