From 801a995f6cc0d824bcca47c4deb8c651813cd9a4 Mon Sep 17 00:00:00 2001 From: Alan deLevie Date: Mon, 7 Jul 2014 16:07:13 -0400 Subject: [PATCH] call #count on Array instead of Enumerator in pry_instance.rb --- lib/pry/pry_instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pry/pry_instance.rb b/lib/pry/pry_instance.rb index 7122b591..a28434e2 100644 --- a/lib/pry/pry_instance.rb +++ b/lib/pry/pry_instance.rb @@ -503,7 +503,7 @@ class Pry @input_array << code if code Pry.line_buffer.push(*code.each_line) - Pry.current_line += code.each_line.count + Pry.current_line += code.lines.count end end