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:
parent
c9dc06fa39
commit
801a995f6c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue