From 5470c1fe38a47bd4eb1da9197786f8fdd4b2a952 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 21 Jun 2001 09:33:15 +0000 Subject: Completion for AUTO_CD. --- Completion/Zsh/Command/_cd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Zsh/Command') 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 -- cgit 1.4.1