diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-23 04:19:26 +0000 |
commit | 626e2aeb1657f112feb6d03c34bb9e9f44764c75 (patch) | |
tree | 9e4a306df7b5826a796b99f0b6ffa3423ee9f5f9 /Functions/Zftp/zfget_match | |
parent | 766fcd5ee2ef632cd982a1ec118dbdfde17c03a8 (diff) | |
download | zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.gz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.tar.xz zsh-626e2aeb1657f112feb6d03c34bb9e9f44764c75.zip |
zsh-workers/10195
Diffstat (limited to 'Functions/Zftp/zfget_match')
-rw-r--r-- | Functions/Zftp/zfget_match | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Functions/Zftp/zfget_match b/Functions/Zftp/zfget_match index cd34c095c..7ff97f4c1 100644 --- a/Functions/Zftp/zfget_match +++ b/Functions/Zftp/zfget_match @@ -17,8 +17,7 @@ if [[ $ZFTP_SYSTEM == UNIX* && $1 == */* ]]; then local reply reply=(${${${(f)"$(<$tmpf)"}##$dir}%\*}) rm -f $tmpf - _description files expl 'remote file' - compadd "$expl[@]" -P $dir - $reply + _loop files expl 'remote file' compadd -P $dir - $reply else # On the first argument to ls, we usually get away with a glob. zftp ls "$1*$2" >$tmpf @@ -29,8 +28,7 @@ else local fcache_name zffcache if [[ -n $WIDGET ]]; then - _description files expl 'remote file' - compadd "$expl[@]" -F fignore - ${(P)fcache_name} + _loop files expl 'remote file' compadd -F fignore - ${(P)fcache_name} else reply=(${(P)fcache_name}); fi |