Skip to content

Commit

Permalink
ri: Fix colon handling in class completion.
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 21, 2014
1 parent 5152356 commit 24ea53f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion completions/ri
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 24ea53f

Please sign in to comment.