diff options
author | aycabta <[email protected]> | 2021-12-21 00:16:32 +0900 |
---|---|---|
committer | git <[email protected]> | 2021-12-21 00:49:03 +0900 |
commit | 37aea9d7984d9bf884df121ab0b44168ae1ac0c5 (patch) | |
tree | 85853836e8de5b17ab69682d5fe098ff539ea649 /lib/reline/line_editor.rb | |
parent | c3a3f65b4575898ae2ae457bc4f56d1e6bdb169f (diff) |
[ruby/reline] Finalize when exception occurred
https://github.com/ruby/reline/commit/1f8a3aee43
Co-authored-by: Alex Gittemeier <[email protected]>
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 2c458388cd..9b206d9adf 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -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 |