about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Command/_cd2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd
index 384fe2d66..306855bc8 100644
--- a/Completion/Zsh/Command/_cd
+++ b/Completion/Zsh/Command/_cd
@@ -34,6 +34,8 @@ else
   if [[ $PREFIX != (\~|/|./|../)* ]]; then
     local tmpcdpath alt
 
+    alt=()
+
     tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
 
     (( $#tmpcdpath )) &&