aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-04-24 12:14:53 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-24 12:14:53 +0100
commita477c03ad59fb1487881df5c6be135dde4765133 (patch)
tree0c41ad7f29c1ff9a6d5fd8fb0a32544222dd4a9b /screen-redraw.c
parentae73fd363b23ab3b20e8b8d45a8302ac38ff23d7 (diff)
downloadrtmux-a477c03ad59fb1487881df5c6be135dde4765133.tar.gz
rtmux-a477c03ad59fb1487881df5c6be135dde4765133.tar.bz2
rtmux-a477c03ad59fb1487881df5c6be135dde4765133.zip
Do not update mode until actually drawing something.
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index 30344fe5..5ca6024d 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -438,6 +438,7 @@ screen_redraw_screen(struct client *c)
return;
screen_redraw_set_context(c, &ctx);
+ tty_update_mode(&c->tty, c->tty.mode, NULL);
tty_sync_start(&c->tty);
if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
@@ -473,6 +474,7 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
return;
screen_redraw_set_context(c, &ctx);
+ tty_update_mode(&c->tty, c->tty.mode, NULL);
tty_sync_start(&c->tty);
screen_redraw_draw_pane(&ctx, wp);