Always start sync for output in panes that are not the active pane.

pull/2195/head
nicm 2020-04-20 15:49:05 +00:00
parent 117ec1b2e6
commit 4a5182e665
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}