summaryrefslogtreecommitdiffstats
path: root/cmd-select-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2015-12-13 21:53:57 +0000
committernicm <nicm>2015-12-13 21:53:57 +0000
commitecfeee2e8255a77f82a07124c93c8dbc7683c421 (patch)
tree9203458cd986398219f89c635b0583c8144b6cda /cmd-select-pane.c
parent899bee0056b2d90b1c40c800473014b458ebd63d (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r--cmd-select-pane.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index e83dc609..aa12ae1e 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -27,19 +27,25 @@
enum cmd_retval cmd_select_pane_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_select_pane_entry = {
- "select-pane", "selectp",
- "DdegLlMmP:Rt:U", 0, 0,
- "[-DdegLlMmRU] [-P style] " CMD_TARGET_PANE_USAGE,
- CMD_PANE_T,
- cmd_select_pane_exec
+ .name = "select-pane",
+ .alias = "selectp",
+
+ .args = { "DdegLlMmP:Rt:U", 0, 0 },
+ .usage = "[-DdegLlMmRU] [-P style] " CMD_TARGET_PANE_USAGE,
+
+ .flags = CMD_PANE_T,
+ .exec = cmd_select_pane_exec
};
const struct cmd_entry cmd_last_pane_entry = {
- "last-pane", "lastp",
- "det:", 0, 0,
- "[-de] " CMD_TARGET_WINDOW_USAGE,
- CMD_WINDOW_T,
- cmd_select_pane_exec
+ .name = "last-pane",
+ .alias = "lastp",
+
+ .args = { "det:", 0, 0 },
+ .usage = "[-de] " CMD_TARGET_WINDOW_USAGE,
+
+ .flags = CMD_WINDOW_T,
+ .exec = cmd_select_pane_exec
};
enum cmd_retval