summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-select-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-select-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-select-pane.c')
-rw-r--r--usr.bin/tmux/cmd-select-pane.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/usr.bin/tmux/cmd-select-pane.c b/usr.bin/tmux/cmd-select-pane.c
index c9fcf07e0fd..7e34b948e3b 100644
--- a/usr.bin/tmux/cmd-select-pane.c
+++ b/usr.bin/tmux/cmd-select-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-select-pane.c,v 1.27 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd-select-pane.c,v 1.28 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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