summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-05-11 11:39:31 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-05-11 11:39:31 +0000
commit745e98e21188f577cb57f8f129218aaae78ed90b (patch)
tree711c1152e12962d86fddd598c5346e60651aad2b /usr.bin/tmux/screen-write.c
parentf185854b0a35c552780b0c581978623b57761ae3 (diff)
Clear to start of screen needs to use background colour.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index 8fac027675e..1444a4a7fed 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.119 2017/04/29 21:27:46 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.120 2017/05/11 11:39:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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);