diff options
Diffstat (limited to 'lib/command_match.c')
| -rw-r--r-- | lib/command_match.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/command_match.c b/lib/command_match.c index 42788ecb01..8fa8da6b10 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -331,6 +331,10 @@ command_complete (struct graph *graph, for (ALL_LIST_ELEMENTS_RO (current,node,gn)) { struct cmd_token *token = gn->data; + + if (token->attr == CMD_ATTR_HIDDEN || token->attr == CMD_ATTR_DEPRECATED) + continue; + enum match_type minmatch = min_match_level (token->type); #ifdef TRACE_MATCHER fprintf (stdout, "\"%s\" matches \"%s\" (%d) ? ", input_token, token->text, token->type); |
