mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Merge pull request #1102 from yui-knk/fix-repl_file_loader
Go to interactive_mode end-of-input is raised
This commit is contained in:
commit
9999550e4c
1 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,11 @@ class Pry
|
|||
content.lines.each do |line|
|
||||
break unless _pry_.eval line, :generated => true
|
||||
end
|
||||
|
||||
unless _pry_.eval_string.empty?
|
||||
_pry_.output.puts "#{_pry_.eval_string}...exception encountered, going interactive!"
|
||||
interactive_mode(_pry_)
|
||||
end
|
||||
end
|
||||
|
||||
# Define a few extra commands useful for flipping back & forth
|
||||
|
|
Loading…
Reference in a new issue