about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-21 10:15:24 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-21 10:15:24 +0000
commitc3ab3670e8c056c5f0aa3302ca1c88091cc85490 (patch)
treeead883cadcc215bbfef1b8e0ac195d581e61cf49 /Functions
parent415e93ad39481bddd4313fe3caccd02576b6164a (diff)
downloadzsh-c3ab3670e8c056c5f0aa3302ca1c88091cc85490.tar.gz
zsh-c3ab3670e8c056c5f0aa3302ca1c88091cc85490.tar.xz
zsh-c3ab3670e8c056c5f0aa3302ca1c88091cc85490.zip
zsh-workers/9398
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zftp/zfcd_match4
-rw-r--r--Functions/Zftp/zfget_match4
2 files changed, 4 insertions, 4 deletions
diff --git a/Functions/Zftp/zfcd_match b/Functions/Zftp/zfcd_match
index e9d283c97..9734ba8e2 100644
--- a/Functions/Zftp/zfcd_match
+++ b/Functions/Zftp/zfcd_match
@@ -30,8 +30,8 @@ if [[ $ZFTP_SYSTEM = UNIX* ]]; then
   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 --git a/Functions/Zftp/zfget_match b/Functions/Zftp/zfget_match
index 875fca5f1..cd34c095c 100644
--- a/Functions/Zftp/zfget_match
+++ b/Functions/Zftp/zfget_match
@@ -17,7 +17,7 @@ if [[ $ZFTP_SYSTEM == UNIX* && $1 == */* ]]; then
     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 @@ else
   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});