summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-12-13 21:53:57 +0000
committernicm <nicm@openbsd.org>2015-12-13 21:53:57 +0000
commitc057646b0dae17915fcb431f61cfee0683267f35 (patch)
tree650e02d9861e7c56130c102355831ab1abf19331 /usr.bin/tmux/cmd-capture-pane.c
parentSort button defines. (diff)
downloadwireguard-openbsd-c057646b0dae17915fcb431f61cfee0683267f35.tar.xz
wireguard-openbsd-c057646b0dae17915fcb431f61cfee0683267f35.zip
Use member names in cmd_entry definitions so I stop getting confused
about the order.
Diffstat (limited to 'usr.bin/tmux/cmd-capture-pane.c')
-rw-r--r--usr.bin/tmux/cmd-capture-pane.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-capture-pane.c b/usr.bin/tmux/cmd-capture-pane.c
index c61007614cb..4b8e4586b96 100644
--- a/usr.bin/tmux/cmd-capture-pane.c
+++ b/usr.bin/tmux/cmd-capture-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-capture-pane.c,v 1.36 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd-capture-pane.c,v 1.37 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2009 Jonathan Alvarado <radobobo@users.sourceforge.net>
@@ -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 *