mirror of
https://github.com/tmux/tmux.git
synced 2025-04-23 04:48:47 +00:00
Show error if user option doesn't exist, GitHub issue 2938.
This commit is contained in:
parent
acba07629e
commit
7bd9cdf6fc
@ -127,6 +127,12 @@ cmd_show_options_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
parent = 0;
|
parent = 0;
|
||||||
if (o != NULL)
|
if (o != NULL)
|
||||||
cmd_show_options_print(self, item, o, idx, parent);
|
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(name);
|
||||||
free(argument);
|
free(argument);
|
||||||
|
Loading…
Reference in New Issue
Block a user