1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

call #count on Array instead of Enumerator in pry_instance.rb

This commit is contained in:
Alan deLevie 2014-07-07 16:07:13 -04:00
parent c9dc06fa39
commit 801a995f6c

View file

@ -503,7 +503,7 @@ class Pry
@input_array << code @input_array << code
if code if code
Pry.line_buffer.push(*code.each_line) Pry.line_buffer.push(*code.each_line)
Pry.current_line += code.each_line.count Pry.current_line += code.lines.count
end end
end end