mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[ruby/reline] Finalize when exception occurred
1f8a3aee43
Co-authored-by: Alex Gittemeier <me@a.lexg.dev>
This commit is contained in:
parent
c3a3f65b45
commit
37aea9d798
2 changed files with 7 additions and 2 deletions
|
@ -235,7 +235,7 @@ class Reline::LineEditor
|
|||
when 'EXIT'
|
||||
exit
|
||||
else
|
||||
@old_trap.call
|
||||
@old_trap.call if @old_trap.respond_to?(:call)
|
||||
end
|
||||
}
|
||||
begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue