1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib
Conrad Irwin b5cb8b142f Be more careful exception handling in Readline [Fixes #632, #605]
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.
2012-07-05 20:06:39 -07:00
..
pry Be more careful exception handling in Readline [Fixes #632, #605] 2012-07-05 20:06:39 -07:00
pry.rb Fix warnings 2012-07-01 23:10:50 -07:00