mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Do not list user options with show-hooks.
This commit is contained in:
parent
c68baaad98
commit
a98ee00dd9
@ -201,11 +201,13 @@ cmd_show_options_all(struct cmd *self, struct cmdq_item *item, int scope,
|
|||||||
u_int idx;
|
u_int idx;
|
||||||
int parent;
|
int parent;
|
||||||
|
|
||||||
o = options_first(oo);
|
if (cmd_get_entry(self) != &cmd_show_hooks_entry) {
|
||||||
while (o != NULL) {
|
o = options_first(oo);
|
||||||
if (options_table_entry(o) == NULL)
|
while (o != NULL) {
|
||||||
cmd_show_options_print(self, item, o, -1, 0);
|
if (options_table_entry(o) == NULL)
|
||||||
o = options_next(o);
|
cmd_show_options_print(self, item, o, -1, 0);
|
||||||
|
o = options_next(o);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (oe = options_table; oe->name != NULL; oe++) {
|
for (oe = options_table; oe->name != NULL; oe++) {
|
||||||
if (~oe->scope & scope)
|
if (~oe->scope & scope)
|
||||||
|
Loading…
Reference in New Issue
Block a user