aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2017-05-11 11:39:30 +0000
committernicm <nicm>2017-05-11 11:39:30 +0000
commitc0d3f204b0b7557793f89535dd555258b3a4a85f (patch)
tree6957e52e7959df79fa34c824591489df63283d6e
parent989cdca95fa2e1a4dc3849020838328aded09164 (diff)
downloadrtmux-c0d3f204b0b7557793f89535dd555258b3a4a85f.tar.gz
rtmux-c0d3f204b0b7557793f89535dd555258b3a4a85f.tar.bz2
rtmux-c0d3f204b0b7557793f89535dd555258b3a4a85f.zip
Clear to start of screen needs to use background colour.
-rw-r--r--screen-write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen-write.c b/screen-write.c
index 14cbd4d5..6631ab56 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -943,9 +943,9 @@ screen_write_clearstartofscreen(struct screen_write_ctx *ctx, u_int bg)
if (s->cy > 0)
grid_view_clear(s->grid, 0, 0, sx, s->cy, bg);
if (s->cx > sx - 1)
- grid_view_clear(s->grid, 0, s->cy, sx, 1, 8);
+ grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);
else
- grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, 8);
+ grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, bg);
screen_write_collect_clear(ctx, 0, s->cy);
screen_write_collect_flush(ctx, 0);