From cbe781203f80b0e45cafa44bc3d1635c8d3cf354 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 8 Jul 2019 11:38:14 +0000 Subject: [PATCH] Use the clear history function for the 3J sequence rather than doing it manually. --- screen-write.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/screen-write.c b/screen-write.c index 943e3044..98cdf158 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1169,11 +1169,7 @@ screen_write_clearscreen(struct screen_write_ctx *ctx, u_int bg) void screen_write_clearhistory(struct screen_write_ctx *ctx) { - struct screen *s = ctx->s; - struct grid *gd = s->grid; - - grid_move_lines(gd, 0, gd->hsize, gd->sy, 8); - gd->hscrolled = gd->hsize = 0; + grid_clear_history(ctx->s->grid); } /* Clear a collected line. */