Initialize context property in alignment test handler function.

pull/1545/head
nicm 2018-11-13 11:36:37 +00:00
parent 86e648d906
commit 50cdfc06fb
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}