From 9bd4b96766cbbdc8f8e166baf726d69e8a6024ff Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 14 Mar 2019 17:58:52 +0000 Subject: [PATCH] Fix ED1 (clear end of screen), reported by Marc Reisner. --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index 5db86580..855f8e6a 100644 --- a/tty.c +++ b/tty.c @@ -1672,7 +1672,7 @@ tty_cmd_clearstartofscreen(struct tty *tty, const struct tty_ctx *ctx) px = 0; nx = screen_size_x(wp->screen); py = 0; - ny = ctx->ocy - 1; + ny = ctx->ocy; tty_clear_pane_area(tty, ctx, py, ny, px, nx, ctx->bg);