diff options
author | 2020-12-30 18:29:40 +0000 | |
---|---|---|
committer | 2020-12-30 18:29:40 +0000 | |
commit | ba0ca6e7faf153918252d1e2b9a8778e7940e40c (patch) | |
tree | 647734255086a8a47d1bad4f6943cf233189a600 | |
parent | Set klist lock for pipes. (diff) | |
download | wireguard-openbsd-ba0ca6e7faf153918252d1e2b9a8778e7940e40c.tar.xz wireguard-openbsd-ba0ca6e7faf153918252d1e2b9a8778e7940e40c.zip |
Use right format for session loop, GitHub issue 2519.
-rw-r--r-- | usr.bin/tmux/format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index db6f4b371ca..ca93f639ae7 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.268 2020/12/15 08:31:50 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.269 2020/12/30 18:29:40 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1876,7 +1876,7 @@ format_loop_sessions(struct format_expand_state *es, const char *fmt) RB_FOREACH(s, sessions, &sessions) { format_log(es, "session loop: $%u", s->id); 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); next.ft = nft; expanded = format_expand1(&next, fmt); |