diff --git a/screen-redraw.c b/screen-redraw.c index 44a109fad..c28926a98 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-redraw.c,v 1.166 2026/10/14 12:48:50 nicm Exp $ */ +/* $OpenBSD: screen-redraw.c,v 1.167 2026/10/14 12:51:00 nicm Exp $ */ /* * Copyright (c) 2026 Nicholas Marriott @@ -2190,6 +2190,7 @@ void redraw_client_damage(struct client *c) { struct window *w = c->session->curw->window; + struct tty *tty = &c->tty; struct window_pane *wp; struct redraw_scene *scene; struct redraw_draw_ctx dctx; @@ -2211,8 +2212,8 @@ redraw_client_damage(struct client *c) wp->active_border_gc_set = 0; } - tty_sync_start(&c->tty); - tty_update_mode(&c->tty, c->tty.mode & ~CURSOR_MODES, NULL); + tty_sync_start(tty); + tty_update_mode(tty, c->tty.mode & ~CURSOR_MODES, NULL); TAILQ_FOREACH(rd, &w->damage, entry) { x0 = (rd->x > ox) ? rd->x : ox;