Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2015-07-27 10:01:08 +01:00
commit ff18787b2c
2 changed files with 7 additions and 4 deletions

View File

@ -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')) {

4
tmux.1
View File

@ -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 ,