diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-06-21 09:33:15 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-06-21 09:33:15 +0000 |
| commit | 5470c1fe38a47bd4eb1da9197786f8fdd4b2a952 (patch) | |
| tree | bf3da4331e0cb86c64b74de69ac78ff4b84a7513 /Completion/Zsh/Command/_cd | |
| parent | Fix exit status of compdef. (diff) | |
| download | zsh-5470c1fe38a47bd4eb1da9197786f8fdd4b2a952.tar zsh-5470c1fe38a47bd4eb1da9197786f8fdd4b2a952.tar.gz zsh-5470c1fe38a47bd4eb1da9197786f8fdd4b2a952.tar.bz2 zsh-5470c1fe38a47bd4eb1da9197786f8fdd4b2a952.tar.lz zsh-5470c1fe38a47bd4eb1da9197786f8fdd4b2a952.tar.xz zsh-5470c1fe38a47bd4eb1da9197786f8fdd4b2a952.tar.zst zsh-5470c1fe38a47bd4eb1da9197786f8fdd4b2a952.zip | |
Completion for AUTO_CD.
Diffstat (limited to 'Completion/Zsh/Command/_cd')
| -rw-r--r-- | Completion/Zsh/Command/_cd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd index 2fd2af9be..71fa1a8ad 100644 --- a/Completion/Zsh/Command/_cd +++ b/Completion/Zsh/Command/_cd @@ -24,7 +24,7 @@ if [[ CURRENT -eq 3 ]]; then rep=(${${rep#${PWD%%$words[2]*}}%${PWD#*$words[2]}}) (( $#rep )) && _wanted -C replacement strings expl replacement compadd -a rep else - _directory_stack && ret=0 + [[ CURRENT -gt 1 ]] && _directory_stack && ret=0 if [[ $PREFIX != (\~|/|./|../)* && $#cdpath -ne 0 ]]; then local tdir tdir2 |
