mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
changed behaviour in r() method on EOFError to set self.input to Pry.input instead of Readline
This commit is contained in:
parent
33b8f07661
commit
b9ed38a2b3
1 changed files with 2 additions and 1 deletions
|
@ -175,6 +175,7 @@ class Pry
|
|||
# Ruby expression is received.
|
||||
# Pry commands are also accepted here and operate on the target.
|
||||
# @param [Object, Binding] target The receiver of the read.
|
||||
# @param [String] eval_string Optionally Prime `eval_string` with a start value.
|
||||
# @return [String] The Ruby expression.
|
||||
# @example
|
||||
# Pry.new.r(Object.new)
|
||||
|
@ -290,7 +291,7 @@ class Pry
|
|||
end
|
||||
|
||||
rescue EOFError
|
||||
self.input = Readline
|
||||
self.input = Pry.input
|
||||
""
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue