mirror of
https://github.com/tmux/tmux.git
synced 2024-11-05 18:38:48 +00:00
Need to clear tty context before using it.
This commit is contained in:
parent
7c07f5f640
commit
90f2a417af
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user