diff --git a/contrib/scripts/astcli b/contrib/scripts/astcli
index d6feef021515a9773b7ff284dc5c9961fc353f80..723e1ba6450a54c5508378b77d11caa672513939 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);
 	}