aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 16:22:01 +0000
committernicm <nicm>2020-05-16 16:22:01 +0000
commitecbdcc256fd2c69c60c9d900a28922914d6b9896 (patch)
treeb0aebdfbfee142db0ae36e929659a229c671582c /screen-write.c
parent303d342d5fa5903983c08e4cae429e4f9480eea3 (diff)
downloadrtmux-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.c4
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;
}
}