From 4a5182e6658907f876581fbcf4c774bf86d0d953 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 20 Apr 2020 15:49:05 +0000 Subject: [PATCH] Always start sync for output in panes that are not the active pane. --- screen-write.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }