summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-08-30 11:52:38 +0900
committergit <svn-admin@ruby-lang.org>2021-08-30 11:58:56 +0900
commitaeec02d7f321916ca80ccc8361ccb82fdc779515 (patch)
treec868eef8a226c8df3252ce47b98225373e79141c
parent1e2f10e8aa88d77ef9882aafd1c4dc7b28c8df36 (diff)
[ruby/irb] [].name to display the doc for Array.name
https://github.com/ruby/irb/commit/7c2abc14d8
-rw-r--r--lib/irb/input-method.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 8039f3aba9..725d142919 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -325,6 +325,7 @@ module IRB
cursor_pos_to_render, result, pointer = context.pop(3)
return nil if result.nil? or pointer.nil?
name = result[pointer]
+ name = IRB::InputCompletor.retrieve_completion_data(name, doc_namespace: true)
driver = RDoc::RI::Driver.new
begin