mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
b5cb8b142f
Firstly wrap the entire completion_proc in a begin/rescue/end so that even if something we're not expecting goes wrong, we don't fail. Secondly, only throw the user out of pry if reading from readline fails five times in a row. This avoids a transient error (like a time-out, or a failed tab completion) from kicking you out of pry; but also avoids the infinite looping problem that can happen if the error is not transient. |
||
---|---|---|
.. | ||
pry | ||
pry.rb |