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

convert start_line to an integer

This commit is contained in:
Joe Peduto 2012-02-04 07:57:52 -05:00
parent 07ae5c08b5
commit e83241e41e

View file

@ -110,7 +110,7 @@ class Pry
lines = lines.lines
end
@lines = lines.each_with_index.map { |l, i| [l.chomp, i + start_line] }
@lines = lines.each_with_index.map { |l, i| [l.chomp, i + start_line.to_i] }
@code_type = code_type
end