summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Zsh/Command/_cd2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ebea335e1..f88b6cda8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-30  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 16515: Completion/Zsh/Command/_cd: fixlet to avoid an empty
+	string in an array; cause completion after cd without any
+	matches to not report that there were no matches
+
 2002-01-29  Clint Adams  <clint@zsh.org>
 
 	* 16514: Completion/Unix/Command/_init_d: do not attempt
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 )) &&