Need to clear tty context before using it.

pull/581/merge
nicm 2017-05-12 13:29:05 +00:00 committed by Nicholas Marriott
parent 7c07f5f640
commit 90f2a417af
1 changed files with 2 additions and 0 deletions

View File

@ -387,6 +387,8 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx)
{
struct screen *s = ctx->s;
memset(ttyctx, 0, sizeof *ttyctx);
ttyctx->wp = ctx->wp;
ttyctx->ocx = s->cx;