diff options
author | nicm <nicm> | 2020-05-16 16:22:01 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 16:22:01 +0000 |
commit | ecbdcc256fd2c69c60c9d900a28922914d6b9896 (patch) | |
tree | b0aebdfbfee142db0ae36e929659a229c671582c /screen-write.c | |
parent | 303d342d5fa5903983c08e4cae429e4f9480eea3 (diff) | |
download | rtmux-ecbdcc256fd2c69c60c9d900a28922914d6b9896.tar.gz rtmux-ecbdcc256fd2c69c60c9d900a28922914d6b9896.tar.bz2 rtmux-ecbdcc256fd2c69c60c9d900a28922914d6b9896.zip |
Add screen write flags instead of individual bits and fix line length
calculation with padding.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |