summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-04-14 16:32:59 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-04-14 16:32:59 +0000
commite7daf63fd83344c3bbec75e5e293b6c4895b0f85 (patch)
treed5561814d4cddd2465dc7854903eb8d1cbe47ff2 /contrib
parentdf7cb6b30b7af0d0bfc59f7843081b9c2125ef6e (diff)
Make tab-completion work for all cases
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/astcli4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/scripts/astcli b/contrib/scripts/astcli
index d6feef021..723e1ba64 100755
--- a/contrib/scripts/astcli
+++ b/contrib/scripts/astcli
@@ -152,10 +152,10 @@ sub tab_completion {
if ($word eq '') {
$buffer =~ m/(\S+)\s?$/;
$lastword = $1;
- print STDERR "\n\nlastword=\"$lastword\"\n";
+ #print STDERR "\n\nlastword=\"$lastword\"\n";
}
- my $res = send_command("_command matchesarray \"$buffer\" \"$word\"\n");
+ my $res = send_command("_command matchesarray \"$buffer\" \"$word\"");
foreach my $item (split /\s+/, $res) {
$items{$item}++ unless ($item eq '_EOF_' or $item eq '' or $item eq $lastword);
}