diff options
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r-- | cmd-select-pane.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c index 34b0a3c3..5cec82f2 100644 --- a/cmd-select-pane.c +++ b/cmd-select-pane.c @@ -58,7 +58,6 @@ static void cmd_select_pane_redraw(struct window *w) { struct client *c; - struct window *loop; /* * Redraw entire window if it is bigger than the client (the @@ -68,15 +67,15 @@ cmd_select_pane_redraw(struct window *w) TAILQ_FOREACH(c, &clients, entry) { if (c->session == NULL) continue; - loop = c->session->curw->window; - if (loop == w && tty_window_bigger(&c->tty, w)) + if (c->session->curw->window == w && tty_window_bigger(&c->tty)) server_redraw_client(c); else { - if (loop == w) + if (c->session->curw->window == w) c->flags |= CLIENT_REDRAWBORDERS; if (session_has(c->session, w)) c->flags |= CLIENT_REDRAWSTATUS; } + } } |