From: nicm Date: Tue, 13 Apr 2021 05:25:05 +0000 (+0000) Subject: Move mode set/reset after sync so cursor doesn't flicker, from Avi X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=565ae8f7cc3a9af426fc35d868e8b32316244a13;p=openbsd Move mode set/reset after sync so cursor doesn't flicker, from Avi Halachmi. --- diff --git a/usr.bin/tmux/screen-redraw.c b/usr.bin/tmux/screen-redraw.c index 38ecd2c4f9a..12cbf9ff9b3 100644 --- a/usr.bin/tmux/screen-redraw.c +++ b/usr.bin/tmux/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.83 2021/02/05 12:29:18 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.84 2021/04/13 05:25:05 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -604,8 +604,8 @@ 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); + tty_update_mode(&c->tty, c->tty.mode, NULL); if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) { log_debug("%s: redrawing borders", c->name); @@ -640,8 +640,8 @@ 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); + tty_update_mode(&c->tty, c->tty.mode, NULL); screen_redraw_draw_pane(&ctx, wp);