summaryrefslogtreecommitdiffstats
path: root/grid-view.c
diff options
context:
space:
mode:
authornicm <nicm>2019-07-16 10:30:56 +0000
committernicm <nicm>2019-07-16 10:30:56 +0000
commitb89f2f28bb5f21bfe836870d907ec6992acb5f28 (patch)
treea136da3c90b1bbc17d4d9abd12279c8b4b4b8386 /grid-view.c
parenteac055bfaf1b21b71d5fc79bc29a2810aa20085f (diff)
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 'grid-view.c')
-rw-r--r--grid-view.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/grid-view.c b/grid-view.c
index a4bd5ba2..fa3bfbf6 100644
--- a/grid-view.c
+++ b/grid-view.c
@@ -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. */