aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-16 16:01:35 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-16 16:01:35 +0100
commit5e38d262579662f33570c520b6661e15c215f702 (patch)
tree99b52461946c4a128d6a475f81ae0d4a8ce022c7 /screen-redraw.c
parentb3cadf826034ec356d0bf3dda26b7699bff4649c (diff)
parent5ec80bd249a37147207ec2ef420086336ccf78a8 (diff)
downloadrtmux-5e38d262579662f33570c520b6661e15c215f702.tar.gz
rtmux-5e38d262579662f33570c520b6661e15c215f702.tar.bz2
rtmux-5e38d262579662f33570c520b6661e15c215f702.zip
Merge branch 'obsd-master'
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 211f7f79..c510fb68 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -435,6 +435,7 @@ screen_redraw_screen(struct client *c)
flags = screen_redraw_update(c, c->flags);
screen_redraw_set_context(c, &ctx);
+ tty_sync_start(&c->tty);
if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
if (ctx.pane_status != PANE_STATUS_OFF)
@@ -448,7 +449,9 @@ screen_redraw_screen(struct client *c)
screen_redraw_draw_status(&ctx);
if (c->overlay_draw != NULL && (flags & CLIENT_REDRAWOVERLAY))
c->overlay_draw(c, &ctx);
+
tty_reset(&c->tty);
+ tty_sync_end(&c->tty);
}
/* Redraw a single pane. */
@@ -461,9 +464,12 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
return;
screen_redraw_set_context(c, &ctx);
+ tty_sync_start(&c->tty);
screen_redraw_draw_pane(&ctx, wp);
+
tty_reset(&c->tty);
+ tty_sync_end(&c->tty);
}
/* Draw a border cell. */