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
This commit is contained in:
Luigi Rizzo 2006-11-14 17:00:39 +00:00
parent a9259cd8f4
commit 3d86c80c15
1 changed files with 3 additions and 1 deletions

View File

@ -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)