summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-06-02 20:51:46 +0000
committernicm <nicm>2020-06-02 20:51:46 +0000
commit4694e9a2b62c8df0862d80237e42978d65fc824e (patch)
treeb7c9710117c99894e62fc2b672600475cd9ed260 /screen-write.c
parent2a4d4bda2b94602e9f999ff0b59efa92613f75a9 (diff)
Move the code to set up a padding cell into grid.c.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/screen-write.c b/screen-write.c
index 68c3aa76..46ac967e 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -38,10 +38,6 @@ static int screen_write_overwrite(struct screen_write_ctx *,
static const struct grid_cell *screen_write_combine(struct screen_write_ctx *,
const struct utf8_data *, u_int *);
-static const struct grid_cell screen_write_pad_cell = {
- { { 0 }, 0, 0, 0 }, 0, GRID_FLAG_PADDING, 8, 8, 0
-};
-
struct screen_write_collect_item {
u_int x;
int wrapped;
@@ -1774,7 +1770,7 @@ screen_write_cell(struct screen_write_ctx *ctx, const struct grid_cell *gc)
*/
for (xx = s->cx + 1; xx < s->cx + width; xx++) {
log_debug("%s: new padding at %u,%u", __func__, xx, s->cy);
- grid_view_set_cell(gd, xx, s->cy, &screen_write_pad_cell);
+ grid_view_set_padding(gd, xx, s->cy);
skip = 0;
}