summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-list-panes.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-12-13 21:53:58 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-12-13 21:53:58 +0000
commitb6963b0c60cfb681b75de82ba3a20f950f4e7ea6 (patch)
tree46af6a3189c247c9d776e54ff1cdd580241e5c63 /usr.bin/tmux/cmd-list-panes.c
parent617a01beaf1c1a39a678cf2edc5d01ab1baae1fe (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'usr.bin/tmux/cmd-list-panes.c')
-rw-r--r--usr.bin/tmux/cmd-list-panes.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-list-panes.c b/usr.bin/tmux/cmd-list-panes.c
index 68ee2e02f5d..5b57608a7f2 100644
--- a/usr.bin/tmux/cmd-list-panes.c
+++ b/usr.bin/tmux/cmd-list-panes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-list-panes.c,v 1.24 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd-list-panes.c,v 1.25 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -35,11 +35,14 @@ void cmd_list_panes_window(struct cmd *, struct session *, struct winlink *,
struct cmd_q *, int);
const struct cmd_entry cmd_list_panes_entry = {
- "list-panes", "lsp",
- "asF:t:", 0, 0,
- "[-as] [-F format] " CMD_TARGET_WINDOW_USAGE,
- CMD_WINDOW_T,
- cmd_list_panes_exec
+ .name = "list-panes",
+ .alias = "lsp",
+
+ .args = { "asF:t:", 0, 0 },
+ .usage = "[-as] [-F format] " CMD_TARGET_WINDOW_USAGE,
+
+ .flags = CMD_WINDOW_T,
+ .exec = cmd_list_panes_exec
};
enum cmd_retval