1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-08 01:55:21 +00:00

Show error if user option doesn't exist, GitHub issue 2938.

This commit is contained in:
nicm 2021-10-21 08:23:48 +00:00
parent acba07629e
commit 7bd9cdf6fc

View File

@ -127,6 +127,12 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
parent = 0;
if (o != NULL)
cmd_show_options_print(self, item, o, idx, parent);
else if (*name == '@') {
if (args_has(args, 'q'))
goto fail;
cmdq_error(item, "invalid option: %s", argument);
goto fail;
}
free(name);
free(argument);