summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-20 15:49:05 +0000
committernicm <nicm>2020-04-20 15:49:05 +0000
commit4a5182e6658907f876581fbcf4c774bf86d0d953 (patch)
tree169e4cf372e0499f680882cdc1bf9287c29611ae /screen-write.c
parent117ec1b2e603c2692ab564947b099ec79a20150f (diff)
Always start sync for output in panes that are not the active pane.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c
index 042f2fa8..98a4a701 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -118,7 +118,9 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx,
ttyctx->orlower = s->rlower;
ttyctx->orupper = s->rupper;
- if (sync && !ctx->sync && ttyctx->wp != NULL) {
+ if (ctx->wp != NULL &&
+ !ctx->sync &&
+ (sync || ctx->wp != ctx->wp->window->active)) {
tty_write(tty_cmd_syncstart, ttyctx);
ctx->sync = 1;
}