aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-06-03 00:01:20 +0100
committerThomas Adam <thomas@xteddy.org>2020-06-03 00:01:20 +0100
commit62c0617d791c68132328e77a683897a5a42a4044 (patch)
treeab47549816070e4f89727590a1ec464c1cd4cc74 /screen-write.c
parent3d5decb305a960edb0ca3d91ceec3929dcbc8c3e (diff)
parent4694e9a2b62c8df0862d80237e42978d65fc824e (diff)
downloadrtmux-62c0617d791c68132328e77a683897a5a42a4044.tar.gz
rtmux-62c0617d791c68132328e77a683897a5a42a4044.tar.bz2
rtmux-62c0617d791c68132328e77a683897a5a42a4044.zip
Merge branch 'obsd-master'
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;
}