mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 20:58:53 +00:00
Skip NULL entries in the sessions list when choosing the next session,
from Simon Olofsson.
This commit is contained in:
parent
4789a4ee1f
commit
08bcd6978c
@ -368,7 +368,7 @@ server_next_session(struct session *s)
|
||||
s_out = NULL;
|
||||
for (i = 0; i < ARRAY_LENGTH(&sessions); i++) {
|
||||
s_loop = ARRAY_ITEM(&sessions, i);
|
||||
if (s_loop == s)
|
||||
if (s_loop == NULL || s_loop == s)
|
||||
continue;
|
||||
if (s_out == NULL ||
|
||||
timercmp(&s_loop->activity_time, &s_out->activity_time, <))
|
||||
|
Loading…
Reference in New Issue
Block a user