mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 10:58:48 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
7d98c51805
2
cfg.c
2
cfg.c
@ -139,6 +139,7 @@ cfg_print_causes(struct cmd_q *cmdq)
|
||||
|
||||
free(cfg_causes);
|
||||
cfg_causes = NULL;
|
||||
cfg_ncauses = 0;
|
||||
}
|
||||
|
||||
void
|
||||
@ -160,4 +161,5 @@ cfg_show_causes(struct session *s)
|
||||
|
||||
free(cfg_causes);
|
||||
cfg_causes = NULL;
|
||||
cfg_ncauses = 0;
|
||||
}
|
||||
|
@ -125,13 +125,17 @@ cmd_find_best_client(struct client **clist, u_int csize)
|
||||
c = NULL;
|
||||
if (clist != NULL) {
|
||||
for (i = 0; i < csize; i++) {
|
||||
if (clist[i]->session == NULL)
|
||||
continue;
|
||||
if (cmd_find_client_better(clist[i], c))
|
||||
c = clist[i];
|
||||
}
|
||||
} else {
|
||||
TAILQ_FOREACH(c_loop, &clients, entry) {
|
||||
if (c_loop->session == NULL)
|
||||
continue;
|
||||
if (cmd_find_client_better(c_loop, c))
|
||||
c_loop = c;
|
||||
c = c_loop;
|
||||
}
|
||||
}
|
||||
return (c);
|
||||
|
Loading…
Reference in New Issue
Block a user