summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-05 22:35:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-05 22:35:29 +0000
commit0929a0632ee1a8c9fba681cdfc711fcdeb4e5acf (patch)
treed5a02bac7e2e240a9c40ac317aec788f5e773553 /usr.bin
parenteb9eb7c1d2dad15a5d5956bab64bb1316092b507 (diff)
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 'usr.bin')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 4e5d13b2d9d..243d27e2d4e 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.67 2009/11/05 08:45:08 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.68 2009/11/05 22:35:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -784,7 +784,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, ' ');