summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-20 15:49:05 +0000
committernicm <nicm@openbsd.org>2020-04-20 15:49:05 +0000
commit8d4ffaea7cde9824d1e3f3c8bf83721fee3b1434 (patch)
treec9171bed69343810894d381213615e269b15961d /usr.bin/tmux/screen-write.c
parentApply terminal-overrides after terminal detection, it always takes (diff)
downloadwireguard-openbsd-8d4ffaea7cde9824d1e3f3c8bf83721fee3b1434.tar.xz
wireguard-openbsd-8d4ffaea7cde9824d1e3f3c8bf83721fee3b1434.zip
Always start sync for output in panes that are not the active pane.
Diffstat (limited to 'usr.bin/tmux/screen-write.c')
-rw-r--r--usr.bin/tmux/screen-write.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/screen-write.c b/usr.bin/tmux/screen-write.c
index d7b04fbdae4..7fdccbddf6e 100644
--- a/usr.bin/tmux/screen-write.c
+++ b/usr.bin/tmux/screen-write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen-write.c,v 1.173 2020/04/20 14:59:31 nicm Exp $ */
+/* $OpenBSD: screen-write.c,v 1.174 2020/04/20 15:49:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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;
}