[svn-commits] file: trunk r89982 - /trunk/main/cli.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Nov 28 09:48:01 CST 2007


Author: file
Date: Wed Nov 28 09:48:00 2007
New Revision: 89982

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89982
Log:
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)

Modified:
    trunk/main/cli.c

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=89982&r1=89981&r2=89982
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Wed Nov 28 09:48:00 2007
@@ -1728,6 +1728,9 @@
 		/* 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.




More information about the svn-commits mailing list