diff options
author | 2017-01-15 20:50:34 +0000 | |
---|---|---|
committer | 2017-01-15 20:50:34 +0000 | |
commit | dad89b6e2c88a1164e80a72bbbb6fe102d25321c (patch) | |
tree | cd621c1369793a15494b4a8d6520cab110f9ad2f /usr.bin/tmux/cmd-set-option.c | |
parent | Major tidy up and rework of options tree and set-option/show-options (diff) | |
download | wireguard-openbsd-dad89b6e2c88a1164e80a72bbbb6fe102d25321c.tar.xz wireguard-openbsd-dad89b6e2c88a1164e80a72bbbb6fe102d25321c.zip |
-q flag now needs to be checked in a couple more places.
Diffstat (limited to 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-option.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index b0605626f2b..a008db91d84 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.105 2017/01/15 20:48:41 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.106 2017/01/15 20:50:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -83,6 +83,8 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) /* Parse option name and index. */ name = options_match(args->argv[0], &idx, &ambiguous); if (name == NULL) { + if (args_has(args, 'q')) + return (CMD_RETURN_NORMAL); if (ambiguous) cmdq_error(item, "ambiguous option: %s", args->argv[0]); else @@ -114,6 +116,8 @@ cmd_set_option_exec(struct cmd *self, struct cmdq_item *item) } } if (scope == OPTIONS_TABLE_NONE) { + if (args_has(args, 'q')) + return (CMD_RETURN_NORMAL); cmdq_error(item, "%s", cause); free(cause); return (CMD_RETURN_ERROR); |