diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-28 15:48:00 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-28 15:48:00 +0000 |
commit | 04dbf0cfc67120d746408519f5f766343102bfcf (patch) | |
tree | db8a18bc16a1d4830c21e6c28ace167f196dbeab /main/cli.c | |
parent | 71d61e3829cc8018e3a1499b37380974abe05ec6 (diff) |
Hide CLI commands starting with _ from tab completion as was done previously.
(closes issue #11395)
Reported by: eliel
Patches:
cli.c.patch uploaded by eliel (license 64)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89982 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c index d80aaae20..c71c49e6e 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1728,6 +1728,9 @@ static char *__ast_cli_generator(const char *text, const char *word, int state, /* XXX repeated code */ int src = 0, dst = 0, n = 0; + if (e->command[0] == '_') + continue; + /* * Try to match words, up to and excluding the last word, which * is either a blank or something that we want to extend. |