Skip to content

Commit 5f749c6

Browse files
committed
Remove require in signal handler to avoid ThreadError
`rdoc` has been required so it looks unnecessary
1 parent dc740f0 commit 5f749c6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/irb/input-method.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,6 @@ def auto_indent(&block)
319319
[Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d.
320320
[195, 164] # The "ä" that appears when Alt+d is pressed on xterm.
321321
]
322-
begin
323-
require 'rdoc'
324-
rescue LoadError
325-
return nil
326-
end
327322

328323
if just_cursor_moving and completion_journey_data.nil?
329324
return nil

0 commit comments

Comments
 (0)