We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8fe6e5c + e8f6cd4 commit 1de5881Copy full SHA for 1de5881
lib/iruby/backend.rb
@@ -66,6 +66,11 @@ def eval(code, store_history)
66
reset
67
raise SystemExit
68
end
69
+ unless @pry.eval_string.empty?
70
+ syntax_error = @pry.eval_string
71
+ @pry.reset_eval_string
72
+ @pry.evaluate_ruby syntax_error
73
+ end
74
raise @pry.last_exception if @pry.last_result_is_exception?
75
@pry.push_initial_binding unless @pry.current_binding # ensure that we have a binding
76
@pry.last_result
0 commit comments