summaryrefslogtreecommitdiff
path: root/main/cli.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-11-14 17:00:39 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-11-14 17:00:39 +0000
commit3d86c80c15fbe49a9c6afbf98d8f93afcab94265 (patch)
tree2a2321b677e91155ba862c7d99a40049a874fe28 /main/cli.c
parenta9259cd8f4c2d178ed491cf939319e6d41e5ba3e (diff)
fix completion for "module reload mod_1 mod_2 ... "
(should do the same for the other similar commands, "reload", "module unload" and so on. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index cac7d7c65..1e9a5e803 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -982,7 +982,9 @@ static char *complete_mod_3_nr(const char *line, const char *word, int pos, int
static char *complete_mod_3(const char *line, const char *word, int pos, int state)
{
- return ast_module_helper(line, word, pos, state, 2, 1);
+ if (pos < 2)
+ return NULL;
+ return ast_module_helper(line, word, pos, state, pos, 1);
}
static char *complete_fn(const char *line, const char *word, int pos, int state)