* completer.c (command_completer): New function.
* completer.h <command_completer>: Add prototype. * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the completer for the "help" command.
This commit is contained in:
parent
39c22d1ade
commit
db60ec6263
4 changed files with 21 additions and 1 deletions
|
@ -339,6 +339,14 @@ location_completer (char *text, char *word)
|
|||
return list;
|
||||
}
|
||||
|
||||
/* Complete on command names. Used by "help". */
|
||||
char **
|
||||
command_completer (char *text, char *word)
|
||||
{
|
||||
return complete_on_cmdlist (cmdlist, text, word);
|
||||
}
|
||||
|
||||
|
||||
/* Here are some useful test cases for completion. FIXME: These should
|
||||
be put in the test suite. They should be tested with both M-? and TAB.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue