summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/irb/input-method.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 1e4132ca6f..4d55e4ef3d 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -323,7 +323,11 @@ module IRB
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 =~ /#|\./