mirror of
https://github.com/tmux/tmux.git
synced 2025-03-26 07:48:47 +00:00
Use right format for session loop, GitHub issue 2519.
This commit is contained in:
parent
a98ee00dd9
commit
f97305af31
2
format.c
2
format.c
@ -1876,7 +1876,7 @@ format_loop_sessions(struct format_expand_state *es, const char *fmt)
|
|||||||
RB_FOREACH(s, sessions, &sessions) {
|
RB_FOREACH(s, sessions, &sessions) {
|
||||||
format_log(es, "session loop: $%u", s->id);
|
format_log(es, "session loop: $%u", s->id);
|
||||||
nft = format_create(c, item, FORMAT_NONE, ft->flags);
|
nft = format_create(c, item, FORMAT_NONE, ft->flags);
|
||||||
format_defaults(next.ft, ft->c, s, NULL, NULL);
|
format_defaults(nft, ft->c, s, NULL, NULL);
|
||||||
format_copy_state(&next, es, 0);
|
format_copy_state(&next, es, 0);
|
||||||
next.ft = nft;
|
next.ft = nft;
|
||||||
expanded = format_expand1(&next, fmt);
|
expanded = format_expand1(&next, fmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user