diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-07-27 10:01:08 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-07-27 10:01:08 +0100 |
commit | ff18787b2c9da49e1ab80fc04a7e66224b96f1fc (patch) | |
tree | 9d1d9582fc043d35ef64e292dd3861726802add2 | |
parent | e4cdc9fa0b00d6fc691afcf2fc3f727e60dfe94c (diff) | |
parent | d33adc4fd0f7657ede3178c9b1f33c2d5df3c524 (diff) | |
download | rtmux-ff18787b2c9da49e1ab80fc04a7e66224b96f1fc.tar.gz rtmux-ff18787b2c9da49e1ab80fc04a7e66224b96f1fc.tar.bz2 rtmux-ff18787b2c9da49e1ab80fc04a7e66224b96f1fc.zip |
Merge branch 'obsd-master'
-rw-r--r-- | cmd-set-option.c | 7 | ||||
-rw-r--r-- | tmux.1 | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 77c7d7c2..761cee93 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -110,8 +110,11 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) /* Find the option entry, try each table. */ table = oe = NULL; if (options_table_find(optstr, &table, &oe) != 0) { - cmdq_error(cmdq, "ambiguous option: %s", optstr); - return (CMD_RETURN_ERROR); + if (!args_has(args, 'q')) { + cmdq_error(cmdq, "ambiguous option: %s", optstr); + return (CMD_RETURN_ERROR); + } + return (CMD_RETURN_NORMAL); } if (oe == NULL) { if (!args_has(args, 'q')) { @@ -2326,9 +2326,9 @@ restores a global option to the default). .Pp The .Fl o -flag prevents setting an option that is already set and +flag prevents setting an option that is already set and the .Fl q -flag suppresses errors about unknown options. +flag suppresses errors about unknown or ambiguous options. .Pp With .Fl a , |