mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 00:23:08 +01:00
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.
This commit is contained in:
parent
297ebb1160
commit
bed8153ba0
2
tty.c
2
tty.c
@ -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, ' ');
|
||||
|
Loading…
Reference in New Issue
Block a user