[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
This commit is contained in:
Masataka Pocke Kuwabara 2021-09-25 18:16:13 +09:00 коммит произвёл git
Родитель 64e96d6b41
Коммит 853ca5cceb
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -319,11 +319,6 @@ module IRB
[Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d. [Reline::Key.new(nil, 0xE4, true)], # Normal Alt+d.
[195, 164] # The "ä" that appears when Alt+d is pressed on xterm. [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? if just_cursor_moving and completion_journey_data.nil?
return nil return nil