aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-11-08 23:34:47 +0000
committerTiago Cunha <tcunha@gmx.com>2009-11-08 23:34:47 +0000
commitdcb85fe4b108864de897734815dd0db8b687ba8c (patch)
treee4aad6beb18a5b5a989658c37d815e8e67eee870 /tty.c
parent8fe9ecae05c0c2c0bf5c065d43217eb32bd9a629 (diff)
downloadrtmux-dcb85fe4b108864de897734815dd0db8b687ba8c.tar.gz
rtmux-dcb85fe4b108864de897734815dd0db8b687ba8c.tar.bz2
rtmux-dcb85fe4b108864de897734815dd0db8b687ba8c.zip
Sync OpenBSD patchset 516:
Clear to the end of the screen from the right starting point when drawing line-by-line (in panes or if ed not supported). Fixes problem spotted by Frank Terbeck.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tty.c b/tty.c
index 774470db..84fa62b9 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.171 2009-11-08 23:26:56 tcunha Exp $ */
+/* $Id: tty.c,v 1.172 2009-11-08 23:34:47 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -789,7 +789,7 @@ tty_cmd_clearendofscreen(struct tty *tty, const struct tty_ctx *ctx)
} else {
for (i = ctx->ocx; i < screen_size_x(s); i++)
tty_putc(tty, ' ');
- for (j = ctx->ocy; j < screen_size_y(s); j++) {
+ for (j = ctx->ocy + 1; j < screen_size_y(s); j++) {
tty_cursor_pane(tty, ctx, 0, j);
for (i = 0; i < screen_size_x(s); i++)
tty_putc(tty, ' ');