diff options
author | 2019-07-16 10:30:56 +0000 | |
---|---|---|
committer | 2019-07-16 10:30:56 +0000 | |
commit | 15e17edae7dec9ec139776c2c12ec842dd62d2d4 (patch) | |
tree | 0d76e6c08a6e50324fc95810cc999668fa9697df /usr.bin/tmux/grid-view.c | |
parent | so the output changed slightly, again (diff) | |
download | wireguard-openbsd-15e17edae7dec9ec139776c2c12ec842dd62d2d4.tar.xz wireguard-openbsd-15e17edae7dec9ec139776c2c12ec842dd62d2d4.zip |
Fix grid clear code to correctly clear with the default background
colour rather than ending up with the used count higher than the total
size, GitHub issue 1829.
Diffstat (limited to 'usr.bin/tmux/grid-view.c')
-rw-r--r-- | usr.bin/tmux/grid-view.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c index e28b6836aa6..686cf3c7252 100644 --- a/usr.bin/tmux/grid-view.c +++ b/usr.bin/tmux/grid-view.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grid-view.c,v 1.31 2018/07/04 09:44:07 nicm Exp $ */ +/* $OpenBSD: grid-view.c,v 1.32 2019/07/16 10:30:56 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -214,7 +214,6 @@ grid_view_delete_cells(struct grid *gd, u_int px, u_int py, u_int nx, u_int bg) sx = grid_view_x(gd, gd->sx); grid_move_cells(gd, px, px + nx, py, sx - px - nx, bg); - grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1, bg); } /* Convert cells into a string. */ |