From fc6ae897dfa5861b9b2eaf069ab38389630adf90 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 27 Jun 2013 17:21:25 -0400 Subject: no idea what's going on here --- lib/Reply/Plugin/Autocomplete/Lexicals.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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\["; -- cgit v1.2.3-54-g00ecf