diff options
| author | tomoya ishida <tomoyapenguin@gmail.com> | 2024-04-05 01:15:50 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-04-05 09:34:28 +0900 |
| commit | 4cbe4e49c7e2a90d7d34337343187ab9af2f58d1 (patch) | |
| tree | 59e9faf2260e7bc98b2758f518cf8ea1c6d9c023 /lib | |
| parent | cebbe18eed2e09843e9c24be9a8ea9db6d241050 (diff) | |
[ruby/reline] Always call finalize and deprep
(https://github.com/ruby/reline/pull/668)
https://github.com/ruby/reline/commit/91b030caa4
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/reline.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/reline.rb b/lib/reline.rb index f730f8af12..b1ff8fb56c 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -358,19 +358,10 @@ module Reline io_gate.move_cursor_column(0) rescue Errno::EIO # Maybe the I/O has been closed. - rescue StandardError => e + ensure line_editor.finalize io_gate.deprep(otio) - raise e - rescue Exception - # Including Interrupt - line_editor.finalize - io_gate.deprep(otio) - raise end - - line_editor.finalize - io_gate.deprep(otio) end # GNU Readline waits for "keyseq-timeout" milliseconds to see if the ESC |
