=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen-write.c,v retrieving revision 1.179 retrieving revision 1.180 diff -u -r1.179 -r1.180 --- src/usr.bin/tmux/screen-write.c 2020/05/16 16:02:24 1.179 +++ src/usr.bin/tmux/screen-write.c 2020/05/16 16:22:01 1.180 @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.179 2020/05/16 16:02:24 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.180 2020/05/16 16:22:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -184,10 +184,10 @@ } 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; } }