Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: cd non-existent<TAB>



That completion failed to say that there are no matches (with the
appropriate styles). Caused by yet another case of an array
accidentally containing an empty string.

Bye
  Sven

Index: Completion/Zsh/Command/_cd
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_cd,v
retrieving revision 1.5
diff -u -r1.5 _cd
--- Completion/Zsh/Command/_cd	2001/10/05 11:56:56	1.5
+++ Completion/Zsh/Command/_cd	2002/01/30 08:44:45
@@ -34,6 +34,8 @@
   if [[ $PREFIX != (\~|/|./|../)* ]]; then
     local tmpcdpath alt
 
+    alt=()
+
     tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
 
     (( $#tmpcdpath )) &&

-- 
Sven Wischnowsky                           wischnow@xxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author