summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <kuwabara@pocke.me>2021-09-25 18:16:13 +0900
committergit <svn-admin@ruby-lang.org>2021-10-03 21:51:54 +0900
commit853ca5ccebc71f3eb2235e8847f3b20a949943a2 (patch)
tree01e63d732c50ae886f1f320cea332f0c21ed78f1 /lib/irb
parent64e96d6b4100cd7ef53ed1a7d14c1298ccb0eb23 (diff)
downloadruby-853ca5ccebc71f3eb2235e8847f3b20a949943a2.tar.gz
[ruby/irb] Remove `require` in signal handler to avoid ThreadError
`rdoc` has been required so it looks unnecessary https://github.com/ruby/irb/commit/5f749c613c
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/input-method.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index ea3f31bffc..c91a99b561 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -319,11 +319,6 @@ module IRB
[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