summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-join-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-12-14 00:31:54 +0000
committernicm <nicm@openbsd.org>2015-12-14 00:31:54 +0000
commit8d471e801995645dbb422505c05a24faada2dcc8 (patch)
tree53050bf8a3c8815589e4807d4f55969b9d3b410e /usr.bin/tmux/cmd-join-pane.c
parentfix warnings; spotted by `mandoc -Tlint' (diff)
downloadwireguard-openbsd-8d471e801995645dbb422505c05a24faada2dcc8.tar.xz
wireguard-openbsd-8d471e801995645dbb422505c05a24faada2dcc8.zip
Instead of combined flags for -c, -s, -t, split into different sets
using an enum and simplify the parsing code.
Diffstat (limited to 'usr.bin/tmux/cmd-join-pane.c')
-rw-r--r--usr.bin/tmux/cmd-join-pane.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-join-pane.c b/usr.bin/tmux/cmd-join-pane.c
index 9b392e9af55..85c1e7e45f5 100644
--- a/usr.bin/tmux/cmd-join-pane.c
+++ b/usr.bin/tmux/cmd-join-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-join-pane.c,v 1.21 2015/12/13 21:53:57 nicm Exp $ */
+/* $OpenBSD: cmd-join-pane.c,v 1.22 2015/12/14 00:31:54 nicm Exp $ */
/*
* Copyright (c) 2011 George Nachman <tmux@georgester.com>
@@ -40,7 +40,10 @@ const struct cmd_entry cmd_join_pane_entry = {
.args = { "bdhvp:l:s:t:", 0, 0 },
.usage = "[-bdhv] [-p percentage|-l size] " CMD_SRCDST_PANE_USAGE,
- .flags = CMD_PANE_MARKED_S|CMD_PANE_T,
+ .sflag = CMD_PANE_MARKED,
+ .tflag = CMD_PANE,
+
+ .flags = 0,
.exec = cmd_join_pane_exec
};
@@ -51,7 +54,10 @@ const struct cmd_entry cmd_move_pane_entry = {
.args = { "bdhvp:l:s:t:", 0, 0 },
.usage = "[-bdhv] [-p percentage|-l size] " CMD_SRCDST_PANE_USAGE,
- .flags = CMD_PANE_S|CMD_PANE_T,
+ .sflag = CMD_PANE,
+ .tflag = CMD_PANE,
+
+ .flags = 0,
.exec = cmd_join_pane_exec
};