diff options
author | 2020-04-16 21:16:24 +0000 | |
---|---|---|
committer | 2020-04-16 21:16:24 +0000 | |
commit | 029a303543094d977a973b79214670806f9340f1 (patch) | |
tree | 57775ddb8c2caf7f578081d1f563887da35659f3 /usr.bin/tmux/screen-write.c | |
parent | Collect up line clears like text within the available data so we don't (diff) | |
download | wireguard-openbsd-029a303543094d977a973b79214670806f9340f1.tar.xz wireguard-openbsd-029a303543094d977a973b79214670806f9340f1.zip |
Do not need to set up a tty context for clearing lines now.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r-- | usr.bin/tmux/screen-write.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c index 7ae82375146..fcd908bf013 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.165 2020/04/16 20:32:51 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.166 2020/04/16 21:16:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -957,7 +957,6 @@ screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg) { struct screen *s = ctx->s; struct grid_line *gl; - struct tty_ctx ttyctx; u_int sx = screen_size_x(s); struct screen_write_collect_item *ci = ctx->item; @@ -970,9 +969,6 @@ screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg) if (s->cx > sx - 1 || (s->cx >= gl->cellsize && COLOUR_DEFAULT(bg))) return; - screen_write_initctx(ctx, &ttyctx, 1); - ttyctx.bg = bg; - grid_view_clear(s->grid, s->cx, s->cy, sx - s->cx, 1, bg); if (!screen_write_collect_clear_end(ctx, s->cy, s->cx, bg)) { @@ -989,7 +985,6 @@ void screen_write_clearstartofline(struct screen_write_ctx *ctx, u_int bg) { struct screen *s = ctx->s; - struct tty_ctx ttyctx; u_int sx = screen_size_x(s); struct screen_write_collect_item *ci = ctx->item; @@ -998,9 +993,6 @@ screen_write_clearstartofline(struct screen_write_ctx *ctx, u_int bg) return; } - screen_write_initctx(ctx, &ttyctx, 1); - ttyctx.bg = bg; - if (s->cx > sx - 1) grid_view_clear(s->grid, 0, s->cy, sx, 1, bg); else |