diff --git a/ChangeLog b/ChangeLog index 762b77507..fb3557754 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2003-09-03 Oliver Kiddle + + * 19021: Completion/Zsh/Command/_cd: in command position, + try to complete directories once and once only + + * 19019: Completion/Zsh/Command/_alias, + Completion/Zsh/Command/_unhash: only complete aliases of the + appropriate type for the alias builtin + 2003-09-03 Peter Stephenson * 19020: Src/hashtable.c: printaliasnode was screwed up by 19014. diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd index 306855bc8..3c19f82da 100644 --- a/Completion/Zsh/Command/_cd +++ b/Completion/Zsh/Command/_cd @@ -67,14 +67,15 @@ else # Don't complete local directories in command position, that's # already handled by _command_names (see _autocd) - [[ CURRENT -ne 1 ]] && + [[ CURRENT -ne 1 || ( -z "$path[(r).]" && $PREFIX != */* ) ]] && alt=( "${cdpath+local-}directories:${cdpath+local }directory:_path_files -/" "$alt[@]" ) _alternative "$alt[@]" && ret=0 return ret fi - _wanted directories expl directory _path_files -/ && ret=0 + [[ CURRENT -ne 1 ]] && _wanted directories expl directory \ + _path_files -/ && ret=0 return ret fi