summaryrefslogtreecommitdiffstats
path: root/cmd-capture-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-capture-pane.c
parent899bee0056b2d90b1c40c800473014b458ebd63d (diff)
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'cmd-capture-pane.c')
-rw-r--r--cmd-capture-pane.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/cmd-capture-pane.c b/cmd-capture-pane.c
index 9d22a0f2..0e3644e9 100644
--- a/cmd-capture-pane.c
+++ b/cmd-capture-pane.c
@@ -36,12 +36,15 @@ char *cmd_capture_pane_history(struct args *, struct cmd_q *,
struct window_pane *, size_t *);
const struct cmd_entry cmd_capture_pane_entry = {
- "capture-pane", "capturep",
- "ab:CeE:JpPqS:t:", 0, 0,
- "[-aCeJpPq] " CMD_BUFFER_USAGE " [-E end-line] [-S start-line]"
- CMD_TARGET_PANE_USAGE,
- CMD_PANE_T,
- cmd_capture_pane_exec
+ .name = "capture-pane",
+ .alias = "capturep",
+
+ .args = { "ab:CeE:JpPqS:t:", 0, 0 },
+ .usage = "[-aCeJpPq] " CMD_BUFFER_USAGE " [-E end-line] "
+ "[-S start-line]" CMD_TARGET_PANE_USAGE,
+
+ .flags = CMD_PANE_T,
+ .exec = cmd_capture_pane_exec
};
char *