mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
fix for completion of directories for zftp suite (11091)
This commit is contained in:
parent
d205f2530b
commit
7a83e27a6e
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2000-05-03 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
2000-05-03 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||||
|
|
||||||
|
* 11091: Functions/Zftp/zfcd_match: fix for completion of
|
||||||
|
directories for zftp suite
|
||||||
|
|
||||||
* 11086: Src/builtin.c: allow calling `print -s' in widgets, avoid
|
* 11086: Src/builtin.c: allow calling `print -s' in widgets, avoid
|
||||||
duplicated history number
|
duplicated history number
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ if [[ $ZFTP_SYSTEM = UNIX* ]]; then
|
||||||
rm -f $tmpf
|
rm -f $tmpf
|
||||||
[[ -n $dir && $dir != */ ]] && dir="$dir/"
|
[[ -n $dir && $dir != */ ]] && dir="$dir/"
|
||||||
if [[ -n $WIDGET ]]; then
|
if [[ -n $WIDGET ]]; then
|
||||||
_wanted directories expl 'remote directory'
|
_wanted directories expl 'remote directory' \
|
||||||
compadd -S/ -q -P "$dir" - $reply
|
compadd -S/ -q -P "$dir" - $reply
|
||||||
elif [[ -n $dir ]]; then
|
elif [[ -n $dir ]]; then
|
||||||
reply=(${dir}$reply)
|
reply=(${dir}$reply)
|
||||||
|
|
Loading…
Reference in a new issue