Skip to content

Commit bc4681c

Browse files
nicmnicm
nicm
authored andcommitted
Move mode set/reset after sync so cursor doesn't flicker, from Avi
Halachmi.
1 parent f29d3c7 commit bc4681c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

screen-redraw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ screen_redraw_screen(struct client *c)
604604
return;
605605

606606
screen_redraw_set_context(c, &ctx);
607-
tty_update_mode(&c->tty, c->tty.mode, NULL);
608607
tty_sync_start(&c->tty);
608+
tty_update_mode(&c->tty, c->tty.mode, NULL);
609609

610610
if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
611611
log_debug("%s: redrawing borders", c->name);
@@ -640,8 +640,8 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
640640
return;
641641

642642
screen_redraw_set_context(c, &ctx);
643-
tty_update_mode(&c->tty, c->tty.mode, NULL);
644643
tty_sync_start(&c->tty);
644+
tty_update_mode(&c->tty, c->tty.mode, NULL);
645645

646646
screen_redraw_draw_pane(&ctx, wp);
647647

0 commit comments

Comments
 (0)