aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-10-25 17:02:42 +0100
committerThomas Adam <thomas@xteddy.org>2018-10-25 17:02:42 +0100
commite771f10dc617d46f9096c90f078621a322eeb757 (patch)
treee14bd3fbf23db20666dffb7897b5d18306989f6d /screen-write.c
parent2808f8261cb132e2faf6fe43cd8a5c7ff66b4c12 (diff)
parentfc41bf46acaccb3da8d0588b7e1bbcfebc6442f6 (diff)
downloadrtmux-e771f10dc617d46f9096c90f078621a322eeb757.tar.gz
rtmux-e771f10dc617d46f9096c90f078621a322eeb757.tar.bz2
rtmux-e771f10dc617d46f9096c90f078621a322eeb757.zip
Merge branch 'obsd-master'
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index 4f5bee61..e583c72d 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -965,7 +965,7 @@ screen_write_clearline(struct screen_write_ctx *ctx, u_int bg)
u_int sx = screen_size_x(s);
gl = grid_get_line(s->grid, s->grid->hsize + s->cy);
- if (gl->cellsize == 0 && bg == 8)
+ if (gl->cellsize == 0 && COLOUR_DEFAULT(bg))
return;
screen_write_initctx(ctx, &ttyctx);
@@ -988,7 +988,7 @@ screen_write_clearendofline(struct screen_write_ctx *ctx, u_int bg)
u_int sx = screen_size_x(s);
gl = grid_get_line(s->grid, s->grid->hsize + s->cy);
- if (s->cx > sx - 1 || (s->cx >= gl->cellsize && bg == 8))
+ if (s->cx > sx - 1 || (s->cx >= gl->cellsize && COLOUR_DEFAULT(bg)))
return;
screen_write_initctx(ctx, &ttyctx);