mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Convert clients list into a TAILQ.
This commit is contained in:
6
tty.c
6
tty.c
@ -708,7 +708,6 @@ tty_write(
|
||||
{
|
||||
struct window_pane *wp = ctx->wp;
|
||||
struct client *c;
|
||||
u_int i;
|
||||
|
||||
/* wp can be NULL if updating the screen but not the terminal. */
|
||||
if (wp == NULL)
|
||||
@ -719,9 +718,8 @@ tty_write(
|
||||
if (!window_pane_visible(wp) || wp->flags & PANE_DROP)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c == NULL || c->session == NULL || c->tty.term == NULL)
|
||||
TAILQ_FOREACH(c, &clients, entry) {
|
||||
if (c->session == NULL || c->tty.term == NULL)
|
||||
continue;
|
||||
if (c->flags & CLIENT_SUSPENDED)
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user