diff options
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index cf53130751..3f7f169c69 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -574,6 +574,8 @@ module IRB next end handle_exception(exc) + @context.workspace.local_variable_set(:_, exc) + exc = nil end end end |