diff options
author | 2019-07-08 11:38:14 +0000 | |
---|---|---|
committer | 2019-07-08 11:38:14 +0000 | |
commit | 9c5e7fb679e2d50206e85936e6b91e0b9d1674fa (patch) | |
tree | bf3fcd11b0431058adfbecc5423cdc4151225ee8 /usr.bin/tmux/screen-write.c | |
parent | actually use error, we can delay fatal problems (diff) | |
download | wireguard-openbsd-9c5e7fb679e2d50206e85936e6b91e0b9d1674fa.tar.xz wireguard-openbsd-9c5e7fb679e2d50206e85936e6b91e0b9d1674fa.zip |
Use the clear history function for the 3J sequence rather than doing it manually.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index d782a12b0e1..0a8d6665755 100644 --- a/usr.bin/tmux/screen-write.c +++ b/usr.bin/tmux/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.155 2019/07/06 20:37:29 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.156 2019/07/08 11:38:14 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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. */ |