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

Re: PATCH: zfinit



Should have played some more first...

When changing _description I didn't look at Functions/Zftp.

Bye
 Sven

diff -ru ../z.old/Functions/Zftp/zfcd_match Functions/Zftp/zfcd_match
--- ../z.old/Functions/Zftp/zfcd_match	Fri Jan 21 10:39:51 2000
+++ Functions/Zftp/zfcd_match	Fri Jan 21 10:50:23 2000
@@ -30,8 +30,8 @@
   rm -f $tmpf
   [[ -n $dir && $dir != */ ]] && dir="$dir/"
   if [[ -n $WIDGET ]]; then
-    _description expl 'remote directory'
-    compadd -S/ -q -P "$dir" - $reply
+    _description directories expl 'remote directory'
+    compadd "$expl[@]" -S/ -q -P "$dir" - $reply
   elif [[ -n $dir ]]; then
     reply=(${dir}$reply)
   fi
diff -ru ../z.old/Functions/Zftp/zfget_match Functions/Zftp/zfget_match
--- ../z.old/Functions/Zftp/zfget_match	Fri Jan 21 10:39:51 2000
+++ Functions/Zftp/zfget_match	Fri Jan 21 10:48:13 2000
@@ -17,7 +17,7 @@
     local reply
     reply=(${${${(f)"$(<$tmpf)"}##$dir}%\*})
     rm -f $tmpf
-    _description expl 'remote file'
+    _description files expl 'remote file'
     compadd "$expl[@]" -P $dir - $reply
   else
     # On the first argument to ls, we usually get away with a glob.
@@ -29,7 +29,7 @@
   local fcache_name
   zffcache
   if [[ -n $WIDGET ]]; then
-    _description expl 'remote file'
+    _description files expl 'remote file'
     compadd "$expl[@]" -F fignore - ${(P)fcache_name}
   else
     reply=(${(P)fcache_name});

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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