diff options
Diffstat (limited to 'completions/ri')
-rw-r--r-- | completions/ri | 2 |
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 |