mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
zsh-workers/9398
This commit is contained in:
parent
415e93ad39
commit
c3ab3670e8
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue