summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-12-30 18:29:41 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-12-30 18:29:41 +0000
commit5b48b437dfb875dac217981de7232ff2142e221d (patch)
tree1ac1a6a432bd89665953347ac540e643edf69d6a /usr.bin/tmux
parent1c79bb059c4c268f3153d8fb3005a1b572425826 (diff)
Use right format for session loop, GitHub issue 2519.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/format.c4
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);