summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-split-window.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-split-window.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-split-window.c')
-rw-r--r--usr.bin/tmux/cmd-split-window.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c
index c9051125a05..77396b8e75a 100644
--- a/usr.bin/tmux/cmd-split-window.c
+++ b/usr.bin/tmux/cmd-split-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-split-window.c,v 1.65 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd-split-window.c,v 1.66 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -36,12 +36,15 @@
enum cmd_retval cmd_split_window_exec(struct cmd *, struct cmd_q *);
const struct cmd_entry cmd_split_window_entry = {
- "split-window", "splitw",
- "bc:dF:l:hp:Pt:v", 0, -1,
- "[-bdhvP] [-c start-directory] [-F format] [-p percentage|-l size] "
- CMD_TARGET_PANE_USAGE " [command]",
- CMD_PANE_T,
- cmd_split_window_exec
+ .name = "split-window",
+ .alias = "splitw",
+
+ .args = { "bc:dF:l:hp:Pt:v", 0, -1 },
+ .usage = "[-bdhvP] [-c start-directory] [-F format] "
+ "[-p percentage|-l size] " CMD_TARGET_PANE_USAGE " [command]",
+
+ .flags = CMD_PANE_T,
+ .exec = cmd_split_window_exec
};
enum cmd_retval