[svn-commits] rizzo: trunk r47620 - /trunk/main/cli.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Nov 14 10:00:39 MST 2006


Author: rizzo
Date: Tue Nov 14 11:00:39 2006
New Revision: 47620

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47620
Log:
fix completion for "module reload mod_1 mod_2 ... "
(should do the same for the other similar commands, "reload", "module unload" and so on.


Modified:
    trunk/main/cli.c

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=47620&r1=47619&r2=47620
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Tue Nov 14 11:00:39 2006
@@ -982,7 +982,9 @@
 
 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)



More information about the svn-commits mailing list