aboutsummaryrefslogtreecommitdiff
path: root/cmd-show-options.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-01-18 10:01:12 +0000
committerThomas Adam <thomas@xteddy.org>2017-01-18 10:01:12 +0000
commit6d37984f4f55817a199bd0c2238eb5279f065ee9 (patch)
tree0dafbe0a0434fc3cf4dbeaab992963c6301a904f /cmd-show-options.c
parent64c486ae81b226bda1ae9f753235c6384934c94a (diff)
parent649c0d8e91e799981f4e41d4268a3470512c8412 (diff)
downloadrtmux-6d37984f4f55817a199bd0c2238eb5279f065ee9.tar.gz
rtmux-6d37984f4f55817a199bd0c2238eb5279f065ee9.tar.bz2
rtmux-6d37984f4f55817a199bd0c2238eb5279f065ee9.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-show-options.c')
-rw-r--r--cmd-show-options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-show-options.c b/cmd-show-options.c
index ac5823b6..c7621cb8 100644
--- a/cmd-show-options.c
+++ b/cmd-show-options.c
@@ -130,7 +130,8 @@ cmd_show_options_one(struct cmd *self, struct cmdq_item *item,
cmdq_error(item, "ambiguous option: %s", name);
return (CMD_RETURN_ERROR);
}
- if (options_match_get(oo, name, &idx, 0, &ambiguous) != NULL)
+ if (*name != '@' &&
+ options_match_get(oo, name, &idx, 0, &ambiguous) != NULL)
return (CMD_RETURN_NORMAL);
cmdq_error(item, "unknown option: %s", name);
return (CMD_RETURN_ERROR);