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

PATCH: Re: New _cd ignores matching specs



On Jul 2, 10:15am, Andrej Borsenkow wrote:
} Subject: New _cd ignores matching specs
}
} bor@itsrm2% cd z-4TAB
} No matches for: `user', `named directory', `local directories', or
} `directories in cdpath'
} 
} bor@itsrm2% cd zTAB
} bor@itsrm2% cd zip-2.3/
} Completing directories in cdpath
} zip-2.3/     zlib-1.1.3/  zsh/         zsh-4.0.x/

The problem isn't with _cd, it's with _tilde.

--- zsh-forge/current/Completion/Zsh/Context/_tilde	Thu Jun 28 01:35:36 2001
+++ zsh-4.0/Completion/Zsh/Context/_tilde	Sun Jul  1 23:49:39 2001
@@ -6,7 +6,7 @@
 
 [[ -n "$compstate[quote]" ]] && return 1
 
-local expl suf ret
+local expl suf ret=1
 
 if [[ "$SUFFIX" = */* ]]; then
   ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
@@ -28,3 +28,5 @@
 
   (( ret )) || return 0
 done
+
+return ret

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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