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

Re: file completion of ~user/... stats wrong directory



>>>>> On September 9, 2009 Greg Klanderman <gak@xxxxxxxxxxxxxx> wrote:

> Looks like this is being caused by the 'accept-exact-dirs' logic in
> _path_files:

Attached below is the one line fix.

greg

Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.47
diff -u -r1.47 _path_files
--- Completion/Unix/Type/_path_files	5 Aug 2009 00:46:45 -0000	1.47
+++ Completion/Unix/Type/_path_files	10 Sep 2009 15:04:23 -0000
@@ -355,7 +355,7 @@
     tmp1=$match[1]
     tpre=$match[2]
     while true; do
-      if [[ -d $donepath$tmp1 ]]; then
+      if [[ -d $prepath$realpath$donepath$tmp1 ]]; then
 	donepath=$donepath$tmp1/
 	pre=$tpre
 	break



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