summaryrefslogtreecommitdiff
path: root/lib/pry/commands.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/commands.rb')
-rw-r--r--lib/pry/commands.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands.rb b/lib/pry/commands.rb
index 3fd45861..02958f09 100644
--- a/lib/pry/commands.rb
+++ b/lib/pry/commands.rb
@@ -321,7 +321,7 @@ Shows local and instance variables by default.
# plain
else
- list = info.values.sort_by { |v| v.last }.map { |v| v.first }.inject(&:+)
+ list = info.values.sort_by(&:last).map(&:first).inject(&:+)
list.uniq! if list
if Pry.color
output.puts CodeRay.scan(Pry.view(list), :ruby).term