summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2017-05-12 15:18:14 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2017-05-12 15:18:14 +0000
commit56ff1ec01196bfdb23ae264fe1231303bee01061 (patch)
treeabf45eadbc45fca854f5812e89d12b476d406405
parent9e14237085de5043c034d19c7c7ea470ca3d7e32 (diff)
When expanding a line in order to clear it, we need to use the default
background colour - there may be portions that we do not want to clear with the new background colour.
-rw-r--r--usr.bin/tmux/grid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid.c b/usr.bin/tmux/grid.c
index 26efbc56163..08182e2f789 100644
--- a/usr.bin/tmux/grid.c
+++ b/usr.bin/tmux/grid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grid.c,v 1.71 2017/05/12 13:00:56 nicm Exp $ */
+/* $OpenBSD: grid.c,v 1.72 2017/05/12 15:18:13 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -472,7 +472,7 @@ grid_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny, u_int bg)
gd->linedata[yy].cellsize = px;
continue;
}
- grid_expand_line(gd, yy, px + nx, bg);
+ grid_expand_line(gd, yy, px + nx, 8); /* default bg first */
for (xx = px; xx < px + nx; xx++)
grid_clear_cell(gd, xx, yy, bg);
}