diff options
Diffstat (limited to 'Functions/Zftp')
-rw-r--r-- | Functions/Zftp/zfcd_match | 3 | ||||
-rw-r--r-- | Functions/Zftp/zfget_match | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/Functions/Zftp/zfcd_match b/Functions/Zftp/zfcd_match index 9734ba8e2..5108d447e 100644 --- a/Functions/Zftp/zfcd_match +++ b/Functions/Zftp/zfcd_match @@ -30,8 +30,7 @@ if [[ $ZFTP_SYSTEM = UNIX* ]]; then rm -f $tmpf [[ -n $dir && $dir != */ ]] && dir="$dir/" if [[ -n $WIDGET ]]; then - _description directories expl 'remote directory' - compadd "$expl[@]" -S/ -q -P "$dir" - $reply + _loop directories expl 'remote directory' compadd -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 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 |