summaryrefslogtreecommitdiff
path: root/completions/ri
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-03-18 12:02:11 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2018-03-18 12:02:11 -0300
commit9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (patch)
tree6399b936aecc388506ec32cfc10fdb06cfc1949f /completions/ri
parent6d88f1055806932d9291f96847d2b691cccda2cd (diff)
downloadbash-completion-9cd22d1df8f0f5b554858471c86faa9f37b8fed4.tar.gz
New upstream version 2.8upstream/2.8
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 16e44664..ba4dbe51 100644
--- a/completions/ri
+++ b/completions/ri
@@ -90,7 +90,7 @@ _ri()
if [[ $ri_version == integrated ]]; then
# integrated ri from Ruby 1.9
classes=( $( ri -c 2>/dev/null | ruby -ne 'if /^\s*$/..$stdin.eof then \
- if /, [A-Z]+/ then print; end; end' 2>/dev/null ) )
+ if /^ +[A-Z]/ then print; end; end' 2>/dev/null ) )
elif [[ $ri_major && $ri_major -ge 3 ]]; then
classes=( $( ri -l 2>/dev/null ) )
elif [[ $ri_version == "ri 1.8a" ]]; then