mirror of
https://github.com/tmux/tmux.git
synced 2025-04-01 13:18:49 +00:00
Move mode set/reset after sync so cursor doesn't flicker, from Avi
Halachmi.
This commit is contained in:
parent
f29d3c7f74
commit
bc4681c83d
@ -604,8 +604,8 @@ screen_redraw_screen(struct client *c)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
screen_redraw_set_context(c, &ctx);
|
screen_redraw_set_context(c, &ctx);
|
||||||
tty_update_mode(&c->tty, c->tty.mode, NULL);
|
|
||||||
tty_sync_start(&c->tty);
|
tty_sync_start(&c->tty);
|
||||||
|
tty_update_mode(&c->tty, c->tty.mode, NULL);
|
||||||
|
|
||||||
if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
|
if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
|
||||||
log_debug("%s: redrawing borders", c->name);
|
log_debug("%s: redrawing borders", c->name);
|
||||||
@ -640,8 +640,8 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
screen_redraw_set_context(c, &ctx);
|
screen_redraw_set_context(c, &ctx);
|
||||||
tty_update_mode(&c->tty, c->tty.mode, NULL);
|
|
||||||
tty_sync_start(&c->tty);
|
tty_sync_start(&c->tty);
|
||||||
|
tty_update_mode(&c->tty, c->tty.mode, NULL);
|
||||||
|
|
||||||
screen_redraw_draw_pane(&ctx, wp);
|
screen_redraw_draw_pane(&ctx, wp);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user