Skip to content

Commit

Permalink
Fix tab completion of module names in the debugger
Browse files Browse the repository at this point in the history
Also broken by 'use strict'.
  • Loading branch information
vpit committed Jun 25, 2012
1 parent a47c73f commit 9df8bd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/perl5db.pl
Expand Up @@ -8566,7 +8566,8 @@ =head4 Qualified package names

return sort map { ( $_, db_complete( $_ . "::", "V ", 2 ) ) }
grep !/^main::/, grep /^\Q$text/,
map { /^(.*)::$/ ? ( $prefix . "::$1" ) : () } keys %{ $prefix . '::' }
map { /^(.*)::$/ ? ( $prefix . "::$1" ) : () }
do { no strict 'refs'; keys %{ $prefix . '::' } }
if ( substr $line, 0, $start ) =~ /^\|*[Vm]\s+$/
and $text =~ /^(.*[^:])::?(\w*)$/
and $prefix = $1;
Expand Down

0 comments on commit 9df8bd1

Please sign in to comment.