mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Revert "Simplify method chain (use 'map.with_index')"
This reverts commit a1f0a00b65
.
It doesn't compatible with 1.8.7, ree, rbx-18mode, jruby-18mode.
This commit is contained in:
parent
84f6604fe1
commit
73167e059b
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ class Pry
|
|||
lines = lines.lines
|
||||
end
|
||||
|
||||
@lines = lines.map.with_index { |l, i| [l.chomp, i + start_line.to_i] }
|
||||
@lines = lines.each_with_index.map { |l, i| [l.chomp, i + start_line.to_i] }
|
||||
@code_type = code_type
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue