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-windows.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-windows.c')
-rw-r--r-- | cmd-list-windows.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/cmd-list-windows.c b/cmd-list-windows.c index 0da6dfe8..5f4326a3 100644 --- a/cmd-list-windows.c +++ b/cmd-list-windows.c @@ -34,7 +34,7 @@ void cmd_list_windows_session( const struct cmd_entry cmd_list_windows_entry = { "list-windows", "lsw", - "aF:t:", 0, 0, + "F:at:", 0, 0, "[-a] [-F format] " CMD_TARGET_SESSION_USAGE, 0, NULL, @@ -84,18 +84,10 @@ cmd_list_windows_session( if (template == NULL) { switch (type) { case 0: - template = "#{window_index}: " - "#{window_name} " - "[#{window_width}x#{window_height}] " - "[layout #{window_layout}] #{window_id}" - "#{?window_active, (active),}"; + template = DEFAULT_WINDOW_TEMPLATE; break; case 1: - template = "#{session_name}:#{window_index}: " - "#{window_name} " - "[#{window_width}x#{window_height}] " - "[layout #{window_layout}] #{window_id}" - "#{?window_active, (active),}"; + template = "#{session_name}:" DEFAULT_WINDOW_TEMPLATE; break; } } |