diff options
author | Vincent Pit <perl@profvince.com> | 2012-06-25 16:07:25 +0200 |
---|---|---|
committer | Vincent Pit <perl@profvince.com> | 2012-06-25 16:07:33 +0200 |
commit | 9df8bd1db54cceb60e2db0a139ff7db66d12a3de (patch) | |
tree | 2173a4daa56695b9aa351fafa160b2180199cd44 /lib | |
parent | a47c73fc11a9b8f844ed64e461ff2c2e5b3fb95e (diff) | |
download | perl-9df8bd1db54cceb60e2db0a139ff7db66d12a3de.tar.gz |
Fix tab completion of module names in the debugger
Also broken by 'use strict'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/perl5db.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl index d91415495f..4b4ab36bbd 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -8566,7 +8566,8 @@ start with 'main::'. Return this list. 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; |