X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCompletion.pm;fp=lib%2FDevel%2FREPL%2FPlugin%2FCompletion.pm;h=ad7c25f1c17e546544de667349ab8a301d687014;hp=852e866a750c19d592aac04e9857c82de39cabe2;hb=33628ecb3689f2719563d0a9ae82d3ccec1a4cbb;hpb=81d2f8e6b31c924b068e571a2b861f1ebaadf1af diff --git a/lib/Devel/REPL/Plugin/Completion.pm b/lib/Devel/REPL/Plugin/Completion.pm index 852e866..ad7c25f 100644 --- a/lib/Devel/REPL/Plugin/Completion.pm +++ b/lib/Devel/REPL/Plugin/Completion.pm @@ -67,7 +67,7 @@ around 'eval' => sub { 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;