aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-07-08 15:02:25 +0100
committerThomas Adam <thomas@xteddy.org>2019-07-08 15:02:25 +0100
commit29b2d07b6b7f55cd98afbb018027889494c999a7 (patch)
tree1c101f3b9aaec1375f20cd42295715de44e80985 /screen-write.c
parent3a4cf62aa9819472a26f0ed3c3101d7556184656 (diff)
parentcbe781203f80b0e45cafa44bc3d1635c8d3cf354 (diff)
downloadrtmux-29b2d07b6b7f55cd98afbb018027889494c999a7.tar.gz
rtmux-29b2d07b6b7f55cd98afbb018027889494c999a7.tar.bz2
rtmux-29b2d07b6b7f55cd98afbb018027889494c999a7.zip
Merge branch 'obsd-master'
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c6
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. */