[ruby/reline] Finalize when exception occurred

1f8a3aee43

Co-authored-by: Alex Gittemeier <me@a.lexg.dev>
This commit is contained in:
aycabta 2021-12-21 00:16:32 +09:00 committed by git
parent c3a3f65b45
commit 37aea9d798
2 changed files with 7 additions and 2 deletions

View file

@ -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