From fd1fca51fa4202b87d951c2efab4c4e8df7b472d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 15 Jun 2026 08:59:43 +0100 Subject: [PATCH] Remove old code. --- server-client.c | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/server-client.c b/server-client.c index 421f87f0..665bcd01 100644 --- a/server-client.c +++ b/server-client.c @@ -1525,9 +1525,8 @@ server_client_loop(void) { struct client *c; struct window *w; - struct window_pane *wp, *twp; + struct window_pane *wp; struct window_mode_entry *wme; - u_int bit; /* Check for window resize. This is done before redrawing. */ RB_FOREACH(w, windows, &windows) @@ -1565,42 +1564,6 @@ server_client_loop(void) server_client_check_pane_resize(wp); server_client_check_pane_buffer(wp); } - /* - * If PANE_REDRAW was set during buffer processing - * above, check_redraw has already run for this - * iteration and will not see it. Defer the redraw - * to the next iteration via CLIENT_REDRAWPANES so - * screen_redraw_pane fires once the grid is complete - * (e.g. after the shell prompt has been written). - */ - if (wp->flags & PANE_REDRAW) { - bit = 0; - TAILQ_FOREACH(twp, &w->panes, entry) { - if (twp == wp) { - TAILQ_FOREACH(c, &clients, - entry) { - if (c->session == NULL || - c->session->curw == - NULL || - c->session->curw->window - != w) - continue; - if (bit < 64) { - c->redraw_panes - |= (1ULL - << bit); - c->flags |= - CLIENT_REDRAWPANES; - } else - c->flags |= - CLIENT_REDRAWWINDOW; - } - break; - } - if (++bit == 64) - break; - } - } wp->flags &= ~(PANE_REDRAW|PANE_REDRAWSCROLLBAR); } check_window_name(w);