git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@3766
bd8105ee-0ff8-0310-8827-fb3f25b6796d
foreach my $var (keys %{$lex->get_context('_')}) {
$var = substr($var, 1); # we drop the variable idiom as it confuses the completion
$self->push_completion($var) unless
- grep /^${var}$/, @{$self->term->Attribs->{completion_word}};
+ grep $_ eq $var, @{$self->term->Attribs->{completion_word}};
}
return @ret;