Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: cd non-existent<TAB>
- X-seq: zsh-workers 16515
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: cd non-existent<TAB>
- Date: Wed, 30 Jan 2002 09:45:07 +0100 (CET)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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