diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-08-17 10:01:19 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-08-17 10:01:19 +0100 |
commit | 0dad8dd98259ce686b98e482080d916edbc294e4 (patch) | |
tree | eb7453c7611567b2abf40e9832a08f0c9c8c95ef /tty.c | |
parent | f2d4a1f02275e5b4f273a3228e0e9c099851dadd (diff) | |
parent | 41ababdf6c0529d4336a1daf3418ad314c373614 (diff) | |
download | rtmux-0dad8dd98259ce686b98e482080d916edbc294e4.tar.gz rtmux-0dad8dd98259ce686b98e482080d916edbc294e4.tar.bz2 rtmux-0dad8dd98259ce686b98e482080d916edbc294e4.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -2039,9 +2039,22 @@ tty_cmd_rawstring(struct tty *tty, const struct tty_ctx *ctx) } void -tty_cmd_syncstart(struct tty *tty, __unused const struct tty_ctx *ctx) +tty_cmd_syncstart(struct tty *tty, const struct tty_ctx *ctx) { - tty_sync_start(tty); + if (ctx->num == 0x11) { + /* + * This is an overlay and a command that moves, the cursor so + * start synchronized updates. + */ + tty_sync_start(tty); + } else if (~ctx->num & 0x10) { + /* + * This is a pane. If there is an overlay, always start; + * otherwise, only if requested. + */ + if (ctx->num || tty->client->overlay_draw != NULL) + tty_sync_start(tty); + } } void |