zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: cd non-existent<TAB>
@ 2002-01-30  8:45 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2002-01-30  8:45 UTC (permalink / raw)
  To: zsh-workers


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@berkom.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-30  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-30  8:45 PATCH: cd non-existent<TAB> Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).