summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-paste-buffer.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-paste-buffer.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-paste-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-paste-buffer.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-paste-buffer.c b/usr.bin/tmux/cmd-paste-buffer.c
index c7b5fc33342..f2f62ceb598 100644
--- a/usr.bin/tmux/cmd-paste-buffer.c
+++ b/usr.bin/tmux/cmd-paste-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-paste-buffer.c,v 1.31 2015/12/13 14:32:38 nicm Exp $ */
+/* $OpenBSD: cmd-paste-buffer.c,v 1.32 2015/12/13 21:53:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -34,11 +34,15 @@ void cmd_paste_buffer_filter(struct window_pane *,
const char *, size_t, const char *, int);
const struct cmd_entry cmd_paste_buffer_entry = {
- "paste-buffer", "pasteb",
- "db:prs:t:", 0, 0,
- "[-dpr] [-s separator] " CMD_BUFFER_USAGE " " CMD_TARGET_PANE_USAGE,
- CMD_PANE_T,
- cmd_paste_buffer_exec
+ .name = "paste-buffer",
+ .alias = "pasteb",
+
+ .args = { "db:prs:t:", 0, 0 },
+ .usage = "[-dpr] [-s separator] " CMD_BUFFER_USAGE " "
+ CMD_TARGET_PANE_USAGE,
+
+ .flags = CMD_PANE_T,
+ .exec = cmd_paste_buffer_exec
};
enum cmd_retval