diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-05 22:35:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-05 22:35:28 +0000 |
commit | bed8153ba00fef8ed2f618463fa631c71b8f51cf (patch) | |
tree | a86c28e65e3f297970818521e02ec79c71d135fc /tty.c | |
parent | 297ebb1160c7d338f19148f2fbce1c6753bbee3d (diff) | |
download | rtmux-bed8153ba00fef8ed2f618463fa631c71b8f51cf.tar.gz rtmux-bed8153ba00fef8ed2f618463fa631c71b8f51cf.tar.bz2 rtmux-bed8153ba00fef8ed2f618463fa631c71b8f51cf.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, ' '); |