diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-05-22 21:03:25 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-05-22 21:03:25 +0000 |
commit | 5cc4961fd28fe920236c6716f6ff751d22d90188 (patch) | |
tree | 7cd1846843b9693dd46f0eae010e5297c6f5ce79 /cmd-list-sessions.c | |
parent | baafc17a1e9e6b622bcb36dfd096c1316dcbbfda (diff) | |
download | rtmux-5cc4961fd28fe920236c6716f6ff751d22d90188.tar.gz rtmux-5cc4961fd28fe920236c6716f6ff751d22d90188.tar.bz2 rtmux-5cc4961fd28fe920236c6716f6ff751d22d90188.zip |
Sync OpenBSD patchset 1119:
Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.
Diffstat (limited to 'cmd-list-sessions.c')
-rw-r--r-- | cmd-list-sessions.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cmd-list-sessions.c b/cmd-list-sessions.c index 1ddc574d..d43baf43 100644 --- a/cmd-list-sessions.c +++ b/cmd-list-sessions.c @@ -49,14 +49,8 @@ cmd_list_sessions_exec(struct cmd *self, struct cmd_ctx *ctx) const char *template; char *line; - template = args_get(args, 'F'); - if (template == NULL) { - template = "#{session_name}: #{session_windows} windows " - "(created #{session_created_string}) [#{session_width}x" - "#{session_height}]#{?session_grouped, (group ,}" - "#{session_group}#{?session_grouped,),}" - "#{?session_attached, (attached),}"; - } + if ((template = args_get(args, 'F')) == NULL) + template = DEFAULT_SESSION_TEMPLATE; n = 0; RB_FOREACH(s, sessions, &sessions) { |