diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-14 16:32:59 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-14 16:32:59 +0000 |
commit | b7abe0b69efe92fc721d1360d204610e264da70a (patch) | |
tree | d5561814d4cddd2465dc7854903eb8d1cbe47ff2 /contrib/scripts | |
parent | ebaed1af0352d82cf200a2a324611a9c92617551 (diff) |
Make tab-completion work for all cases
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114115 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib/scripts')
-rwxr-xr-x | contrib/scripts/astcli | 4 |
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); } |