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:
parent
07ae5c08b5
commit
e83241e41e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue