From ecbdcc256fd2c69c60c9d900a28922914d6b9896 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 16 May 2020 16:22:01 +0000 Subject: Add screen write flags instead of individual bits and fix line length calculation with padding. --- screen-write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'screen-write.c') diff --git a/screen-write.c b/screen-write.c index 9571cbec..062a2929 100644 --- a/screen-write.c +++ b/screen-write.c @@ -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; } } -- cgit