diff options
author | 2017-05-12 15:18:13 +0000 | |
---|---|---|
committer | 2017-05-12 15:18:13 +0000 | |
commit | f74a6aa309c6e8f393397c57dabd3fbc99e5e292 (patch) | |
tree | 2aa46137149dec6d00009ac340c1162f65a0d287 /usr.bin/tmux/grid.c | |
parent | Make the markup of negative parameters consistently use .Cm; (diff) | |
download | wireguard-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.c | 4 |
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); } |