[Bash-completion-commits] [bash-completion] 01/03: ri: Fix colon handling in class completion.

Ville Skyttä scop-guest at moszumanska.debian.org
Fri Feb 21 17:40:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 24ea53f01de9c218a133d8cf7b3c77d6ad07bc26
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Feb 21 19:36:26 2014 +0200

    ri: Fix colon handling in class completion.
---
 completions/ri | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/completions/ri b/completions/ri
index 62a9b70..2210329 100644
--- a/completions/ri
+++ b/completions/ri
@@ -35,7 +35,7 @@ _ri_get_methods()
 _ri()
 {
     local cur prev words cword
-    _init_completion || return
+    _init_completion -n : || return
 
     local class method prefix ri_path ri_version separator IFS
     local -a classes
@@ -75,6 +75,8 @@ _ri()
     fi
 
     COMPREPLY=( $( compgen -W '${classes[@]}' -- "$cur" ) )
+    __ltrim_colon_completions "$cur"
+
     if [[ "$cur" == [A-Z]* ]]; then
         # we're completing on class or module alone
         return 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list