summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-set-option.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-set-option.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-set-option.c')
-rw-r--r--usr.bin/tmux/cmd-set-option.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c
index f25675bed88..ac8394055d6 100644
--- a/usr.bin/tmux/cmd-set-option.c
+++ b/usr.bin/tmux/cmd-set-option.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-set-option.c,v 1.91 2015/12/13 21:53:57 nicm Exp $ */
+/* $OpenBSD: cmd-set-option.c,v 1.92 2015/12/14 00:31:54 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -71,7 +71,9 @@ const struct cmd_entry cmd_set_option_entry = {
.args = { "agoqst:uw", 1, 2 },
.usage = "[-agosquw] [-t target-window] option [value]",
- .flags = CMD_WINDOW_T|CMD_CANFAIL,
+ .tflag = CMD_WINDOW_CANFAIL,
+
+ .flags = 0,
.exec = cmd_set_option_exec
};
@@ -82,7 +84,9 @@ const struct cmd_entry cmd_set_window_option_entry = {
.args = { "agoqt:u", 1, 2 },
.usage = "[-agoqu] " CMD_TARGET_WINDOW_USAGE " option [value]",
- .flags = CMD_WINDOW_T|CMD_CANFAIL,
+ .tflag = CMD_WINDOW_CANFAIL,
+
+ .flags = 0,
.exec = cmd_set_option_exec
};