diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-05-22 11:35:38 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-05-22 11:35:38 +0000 |
commit | 78cd304b7b07161637cb18551d43b87d7e1f7be4 (patch) | |
tree | ad6f80162d80948362de9d2484e783186a92d6e0 /usr.bin/tmux/cmd-list-windows.c | |
parent | 1a47989e1c6a692ac3c72e02286e5f1fcafc90da (diff) |
Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/cmd-list-windows.c')
-rw-r--r-- | usr.bin/tmux/cmd-list-windows.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/usr.bin/tmux/cmd-list-windows.c b/usr.bin/tmux/cmd-list-windows.c index a7dfd76f483..941c3949a25 100644 --- a/usr.bin/tmux/cmd-list-windows.c +++ b/usr.bin/tmux/cmd-list-windows.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-list-windows.c,v 1.18 2012/01/30 20:39:56 nicm Exp $ */ +/* $OpenBSD: cmd-list-windows.c,v 1.19 2012/05/22 11:35:37 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; } } |