diff options
author | nicm <nicm> | 2019-07-08 11:38:14 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-07-08 11:38:14 +0000 |
commit | cbe781203f80b0e45cafa44bc3d1635c8d3cf354 (patch) | |
tree | 0ef05e75501870a47fc2c91212637d1fafd2ccc4 /screen-write.c | |
parent | ddf53d6e4e76463e6d777b2de7304572333935e9 (diff) |
Use the clear history function for the 3J sequence rather than doing it manually.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 6 |
1 files changed, 1 insertions, 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. */ |