summaryrefslogtreecommitdiff
path: root/lib/irb/input-method.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r--lib/irb/input-method.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 94ad28cd63..b74974b925 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -312,6 +312,9 @@ module IRB
return nil if result.nil? or pointer.nil? or pointer < 0
name = doc_namespace.call(result[pointer])
+ # Use first one because document dialog does not support multiple namespaces.
+ name = name.first if name.is_a?(Array)
+
show_easter_egg = name&.match?(/\ARubyVM/) && !ENV['RUBY_YES_I_AM_NOT_A_NORMAL_USER']
options = {}