mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Work around rbx bug by checking if Range#max is nil
This commit is contained in:
parent
b5455a10bc
commit
1d214a496c
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class Pry
|
|||
if _slop.present?(:r)
|
||||
replay_sequence = replay_sequence.split("\n").join('; ')
|
||||
index = opts[:r]
|
||||
index = index.min if index.min == index.max
|
||||
index = index.min if index.min == index.max || index.max.nil?
|
||||
|
||||
raise CommandError, "Replay index #{ index } points out to another replay call: `#{ replay_sequence }`"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue