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

Re: Possible bug with cd completion



On Aug 9, 10:38am, martin.ebourne@xxxxxxxxxxxx wrote:
}
} This seems to be a problem with the handling of cdablevars in _cd.

Try this:

Index: Completion/Zsh/Command/_cd
===================================================================
--- Completion/Zsh/Command/_cd	2001/06/27 16:40:02	1.3
+++ Completion/Zsh/Command/_cd	2001/08/09 15:50:44
@@ -36,7 +36,7 @@
     tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
 
     # With cdablevars, we can complete foo as if ~foo/
-    if [[ -o cdablevars && -n "$PREFIX" ]]; then
+    if [[ -o cdablevars && -n "$PREFIX" && "$PREFIX" != <-> ]]; then
       if [[ "$PREFIX" != */* ]]; then
         _tilde && ret=0
       else

-- 
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