summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/grid.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-05-12 15:18:13 +0000
committernicm <nicm@openbsd.org>2017-05-12 15:18:13 +0000
commitf74a6aa309c6e8f393397c57dabd3fbc99e5e292 (patch)
tree2aa46137149dec6d00009ac340c1162f65a0d287 /usr.bin/tmux/grid.c
parentMake the markup of negative parameters consistently use .Cm; (diff)
downloadwireguard-openbsd-f74a6aa309c6e8f393397c57dabd3fbc99e5e292.tar.xz
wireguard-openbsd-f74a6aa309c6e8f393397c57dabd3fbc99e5e292.zip
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.
Diffstat (limited to 'usr.bin/tmux/grid.c')
-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);
}