From 6c96df836806074fafee68bf6e4c8e2ac42611d0 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 14 Apr 2008 16:33:59 +0000 Subject: [PATCH] Merged revisions 114115 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r114115 | tilghman | 2008-04-14 11:32:59 -0500 (Mon, 14 Apr 2008) | 2 lines Make tab-completion work for all cases ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@114116 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- contrib/scripts/astcli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/scripts/astcli b/contrib/scripts/astcli index d6feef0215..723e1ba645 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); }