summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/Autocomplete/Lexicals.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reply/Plugin/Autocomplete/Lexicals.pm')
-rw-r--r--lib/Reply/Plugin/Autocomplete/Lexicals.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Reply/Plugin/Autocomplete/Lexicals.pm b/lib/Reply/Plugin/Autocomplete/Lexicals.pm
index e7c0c71..ee981f7 100644
--- a/lib/Reply/Plugin/Autocomplete/Lexicals.pm
+++ b/lib/Reply/Plugin/Autocomplete/Lexicals.pm
@@ -57,8 +57,9 @@ sub tab_handler {
next unless index($env_name, $name_prefix) == 0;
+ # this is weird, not sure why % gets stripped but not $ or @
if ($sigil eq $env_sigil) {
- push @results, $env_name;
+ push @results, $sigil eq '%' ? $env_var : $env_name;
}
elsif ($env_sigil eq '@' && $sigil eq '$') {
push @results, "$env_name\[";