mirror of
https://github.com/tmux/tmux.git
synced 2026-01-09 22:30:19 +00:00
Do not use client if there isn't one, GitHub issue 4789.
This commit is contained in:
4
format.c
4
format.c
@@ -4460,7 +4460,9 @@ format_loop_sessions(struct format_expand_state *es, const char *fmt)
|
||||
for (i = 0; i < n; i++) {
|
||||
s = l[i];
|
||||
format_log(es, "session loop: $%u", s->id);
|
||||
if (active != NULL && s->id == ft->c->session->id)
|
||||
if (active != NULL &&
|
||||
ft->c != NULL &&
|
||||
s->id == ft->c->session->id)
|
||||
use = active;
|
||||
else
|
||||
use = all;
|
||||
|
||||
Reference in New Issue
Block a user