Skip to content

Commit

Permalink
Remove require in signal handler to avoid ThreadError
Browse files Browse the repository at this point in the history
`rdoc` has been required so it looks unnecessary
  • Loading branch information
pocke committed Sep 25, 2021
1 parent dc740f0 commit 5f749c6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,6 @@ def auto_indent(&block)
[Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d.
[195, 164] # The "ä" that appears when Alt+d is pressed on xterm.
]
begin
require 'rdoc'
rescue LoadError
return nil
end

if just_cursor_moving and completion_journey_data.nil?
return nil
Expand Down

0 comments on commit 5f749c6

Please sign in to comment.