Add screen write flags instead of individual bits and fix line length

calculation with padding.
This commit is contained in:
nicm
2020-05-16 16:22:01 +00:00
parent 303d342d5f
commit ecbdcc256f
3 changed files with 8 additions and 4 deletions

View File

@ -184,10 +184,10 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx,
}
if (ctx->wp != NULL &&
!ctx->sync &&
(~ctx->flags & SCREEN_WRITE_SYNC) &&
(sync || ctx->wp != ctx->wp->window->active)) {
tty_write(tty_cmd_syncstart, ttyctx);
ctx->sync = 1;
ctx->flags |= SCREEN_WRITE_SYNC;
}
}