summaryrefslogtreecommitdiff
path: root/completions/ri
diff options
context:
space:
mode:
Diffstat (limited to 'completions/ri')
-rw-r--r--completions/ri2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/ri b/completions/ri
index 8f331419..7d1e7cf9 100644
--- a/completions/ri
+++ b/completions/ri
@@ -23,7 +23,7 @@ _ri_get_methods()
# older versions of ri didn't distinguish between class/module and
# instance methods
COMPREPLY+=( \
- "$(ruby -W0 $ri_path "${classes[@]}" | ruby -ane \
+ "$(ruby -W0 $ri_path "${classes[@]}" 2>/dev/null | ruby -ane \
'if /^-/.../^-/ and ! /^-/ and ! /^ +(class|module): / then \
print $_.split(/, |,$| +/).grep(/^[^\[]*$/).join("\n"); \
end' | sort -u)" )