summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2018-11-13 11:36:37 +0000
committernicm <nicm>2018-11-13 11:36:37 +0000
commit50cdfc06fbbfe8fd51d74ce938bde528cd2ff65a (patch)
treedc7fd12ae755a0c8165589f2a1344ca21f8c66a5 /screen-write.c
parent86e648d906d84b8b0522e3d8d6ec6baa171c2423 (diff)
Initialize context property in alignment test handler function.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index c65ae688..0147f516 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -775,6 +775,8 @@ screen_write_alignmenttest(struct screen_write_ctx *ctx)
s->rupper = 0;
s->rlower = screen_size_y(s) - 1;
+ screen_write_initctx(ctx, &ttyctx);
+
screen_write_collect_clear(ctx, 0, screen_size_y(s) - 1);
tty_write(tty_cmd_alignmenttest, &ttyctx);
}