From a477c03ad59fb1487881df5c6be135dde4765133 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 24 Apr 2020 12:14:53 +0100 Subject: Do not update mode until actually drawing something. --- screen-redraw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'screen-redraw.c') 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); -- cgit