aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-03 23:26:56 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-03 23:26:56 +0000
commitebe07c27260c295256e7c66480057a3fcfdc9e7f (patch)
tree159568b6b28e77a6f5496e54f7463f706d1810d6 /tty.c
parent3f16fcb30ab9865cb5cddb215da34842e1b8b5fe (diff)
downloadrtmux-ebe07c27260c295256e7c66480057a3fcfdc9e7f.tar.gz
rtmux-ebe07c27260c295256e7c66480057a3fcfdc9e7f.tar.bz2
rtmux-ebe07c27260c295256e7c66480057a3fcfdc9e7f.zip
Fix some miscalculations when clearing to start of screen: the number of lines
to the cursor is cy not cy - 1, and the current cursor cell should be included.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 06ce9248..16a865eb 100644
--- a/tty.c
+++ b/tty.c
@@ -797,7 +797,7 @@ tty_cmd_clearstartofscreen(
tty_putc(tty, ' ');
}
}
- for (i = 0; i < s->old_cx; i++)
+ for (i = 0; i <= s->old_cx; i++)
tty_putc(tty, ' ');
}