From b7abe0b69efe92fc721d1360d204610e264da70a Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 14 Apr 2008 16:32:59 +0000 Subject: [PATCH] Make tab-completion work for all cases git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114115 f38db490-d61c-443f-a65b-d21fe96a405b --- contrib/scripts/astcli | 4 ++-- 1 file 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); }