aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/ri/driver.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb
index e571ae82ac..43c84ffa90 100644
--- a/lib/rdoc/ri/driver.rb
+++ b/lib/rdoc/ri/driver.rb
@@ -1089,10 +1089,8 @@ The ri pager can be set with the 'RI_PAGER' environment variable or the
return if name.nil? or name.empty?
- name = expand_name name.strip
-
begin
- display_name name
+ display_name expand_name(name.strip)
rescue NotFoundError => e
puts e.message
end