aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-05-12 14:01:17 +0100
committerThomas Adam <thomas@xteddy.org>2017-05-12 14:01:17 +0100
commit7f813dcb6a71b69c06b51a9f28a5319785504e9a (patch)
treeed6d26c9c8608180361fb22ec56f7114419675bb /screen-write.c
parent1cdc4568bd1e5feebaa4b3b9c9611ef406b39a21 (diff)
parent60f7b05c0c9fbee371dac86229d888aed7b0e7f6 (diff)
downloadrtmux-7f813dcb6a71b69c06b51a9f28a5319785504e9a.tar.gz
rtmux-7f813dcb6a71b69c06b51a9f28a5319785504e9a.tar.bz2
rtmux-7f813dcb6a71b69c06b51a9f28a5319785504e9a.zip
Merge branch 'obsd-master'
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c
index 6631ab56..7dace38a 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -606,7 +606,7 @@ screen_write_deletecharacter(struct screen_write_ctx *ctx, u_int nx, u_int bg)
/* Clear nx characters. */
void
-screen_write_clearcharacter(struct screen_write_ctx *ctx, u_int nx)
+screen_write_clearcharacter(struct screen_write_ctx *ctx, u_int nx, u_int bg)
{
struct screen *s = ctx->s;
struct tty_ctx ttyctx;
@@ -623,6 +623,7 @@ screen_write_clearcharacter(struct screen_write_ctx *ctx, u_int nx)
return;
screen_write_initctx(ctx, &ttyctx);
+ ttyctx.bg = bg;
grid_view_clear(s->grid, s->cx, s->cy, nx, 1, 8);