diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-08-16 08:52:26 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-08-16 08:52:26 +0000 |
commit | df926eb624c6cc244d71d2fb1698b4af66c9af76 (patch) | |
tree | af57dec00d82769b0b67cc9e6dc0ea330af86fb8 | |
parent | 0a1337e79e644c26326c5bf68c11582acef17060 (diff) |
grid_view_delete_cells does need to clear, GitHub issue 1871.
-rw-r--r-- | usr.bin/tmux/grid-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/grid-view.c b/usr.bin/tmux/grid-view.c index 686cf3c7252..b14c2480312 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.32 2019/07/16 10:30:56 nicm Exp $ */ +/* $OpenBSD: grid-view.c,v 1.33 2019/08/16 08:52:25 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -214,6 +214,7 @@ 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. */ |