summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-command-prompt.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-command-prompt.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-command-prompt.c')
-rw-r--r--usr.bin/tmux/cmd-command-prompt.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-command-prompt.c b/usr.bin/tmux/cmd-command-prompt.c
index f522e3acaac..39b644670f6 100644
--- a/usr.bin/tmux/cmd-command-prompt.c
+++ b/usr.bin/tmux/cmd-command-prompt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-command-prompt.c,v 1.30 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd-command-prompt.c,v 1.31 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -35,11 +35,15 @@ int cmd_command_prompt_callback(void *, const char *);
void cmd_command_prompt_free(void *);
const struct cmd_entry cmd_command_prompt_entry = {
- "command-prompt", NULL,
- "I:p:t:", 0, 1,
- "[-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " [template]",
- CMD_CLIENT_T,
- cmd_command_prompt_exec
+ .name = "command-prompt",
+ .alias = NULL,
+
+ .args = { "I:p:t:", 0, 1 },
+ .usage = "[-I inputs] [-p prompts] " CMD_TARGET_CLIENT_USAGE " "
+ "[template]",
+
+ .flags = CMD_CLIENT_T,
+ .exec = cmd_command_prompt_exec
};
struct cmd_command_prompt_cdata {