Skip to content

Commit

Permalink
Rescue NotFoundError of RDoc::RI::Driver#expand_name
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 29, 2021
1 parent 0267004 commit c5f13b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,11 @@ def auto_indent(&block)
name = result[pointer]

driver = RDoc::RI::Driver.new
name = driver.expand_name(name)
begin
name = driver.expand_name(name)
rescue RDoc::RI::Driver::NotFoundError
return nil
end
doc = nil
used_for_class = false
if not name =~ /#|\./
Expand Down

0 comments on commit c5f13b2

Please sign in to comment.