From 5f749c613c895cf1b11b5e4cbd1205363bc58028 Mon Sep 17 00:00:00 2001 From: Masataka Pocke Kuwabara Date: Sat, 25 Sep 2021 18:16:13 +0900 Subject: [PATCH] Remove `require` in signal handler to avoid ThreadError `rdoc` has been required so it looks unnecessary --- lib/irb/input-method.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index ea3f31bff..c91a99b56 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -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