diff options
Diffstat (limited to 'Completion/Builtins/_cd')
-rw-r--r-- | Completion/Builtins/_cd | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Completion/Builtins/_cd b/Completion/Builtins/_cd index 26846fde2..2203dcf15 100644 --- a/Completion/Builtins/_cd +++ b/Completion/Builtins/_cd @@ -22,10 +22,8 @@ if [[ CURRENT -eq 3 ]]; then rep=(${~PWD/$words[2]/*}~$PWD(-/N)) # Now remove all the common parts of $PWD and the completions from this rep=(${${rep#${PWD%%$words[2]*}}%${PWD#*$words[2]}}) - if (( $#rep )) && _tags replacement strings; then - _description expl replacement - compadd "$expl[@]" $rep - fi + (( $#rep )) && _wanted -C replacement strings expl replacement && + compadd "$expl[@]" $rep elif _popd || [[ $PREFIX != (\~|/|./|../)* && $#cdpath -ne 0 ]]; then local tdir tdir2 |