Skip to content

Commit b248520

Browse files
junarugahsbt
authored andcommitted
Require RDoc in input-method.rb again in a limited scope.
RDoc is implemented as soft dependency in IRB. See how the rdoc is required in the files. I reverted the commit below. ``` $ grep -ril rdoc lib/ lib/irb/cmd/help.rb lib/irb/completion.rb lib/irb/easter-egg.rb lib/irb/input-method.rb ``` --- Revert "Remove `require` in signal handler to avoid ThreadError" This reverts commit 5f749c6.
1 parent 54c8df0 commit b248520

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/irb/input-method.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ def auto_indent(&block)
320320
[195, 164], # The "ä" that appears when Alt+d is pressed on xterm.
321321
[226, 136, 130] # The "∂" that appears when Alt+d in pressed on iTerm2.
322322
]
323+
begin
324+
require 'rdoc'
325+
rescue LoadError
326+
return nil
327+
end
323328

324329
if just_cursor_moving and completion_journey_data.nil?
325330
return nil

0 commit comments

Comments
 (0)