mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
There is no point setting the scroll region up for line feeds unless scrolling
is actually going to happen, so don't.
This commit is contained in:
parent
9dd72b9583
commit
3a20a05a49
5
tty.c
5
tty.c
@ -693,11 +693,10 @@ tty_cmd_linefeed(struct tty *tty, const struct tty_ctx *ctx)
|
||||
return;
|
||||
}
|
||||
|
||||
tty_reset(tty);
|
||||
|
||||
tty_region(tty, ctx->orupper, ctx->orlower, wp->yoff);
|
||||
|
||||
if (ctx->ocy == ctx->orlower) {
|
||||
tty_reset(tty);
|
||||
tty_region(tty, ctx->orupper, ctx->orlower, wp->yoff);
|
||||
tty_cursor(tty, ctx->ocx, ctx->ocy, wp->xoff, wp->yoff);
|
||||
tty_putc(tty, '\n');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user