1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-26 05:51:08 +02:00

zsh-workers/8494

This commit is contained in:
Tanaka Akira 1999-11-02 21:56:58 +00:00
parent 9a98d9ed96
commit 6532fa34ba

View file

@ -316,7 +316,7 @@ for prepath in "$prepaths[@]"; do
# collected as the suffixes to make the completion code expand # collected as the suffixes to make the completion code expand
# it as far as possible. # it as far as possible.
if [[ "$tsuf" = */* ]]; then if [[ "$tpre" = */* ]]; then
PREFIX="${donepath}${linepath}${cpre}${tpre%%/*}" PREFIX="${donepath}${linepath}${cpre}${tpre%%/*}"
SUFFIX="/${tsuf#*/}" SUFFIX="/${tsuf#*/}"
else else
@ -390,8 +390,8 @@ for prepath in "$prepaths[@]"; do
done done
if [[ -z "$tmp4" ]]; then if [[ -z "$tmp4" ]]; then
PREFIX="${opre}" PREFIX="${opre}${osuf}"
SUFFIX="${osuf}" SUFFIX=""
compadd -Qf -p "$linepath${testpath:q}" \ compadd -Qf -p "$linepath${testpath:q}" \
-W "$prepath$realpath$testpath" "$ignore[@]" \ -W "$prepath$realpath$testpath" "$ignore[@]" \
"$addpfx[@]" "$addsfx[@]" "$remsfx[@]" \ "$addpfx[@]" "$addsfx[@]" "$remsfx[@]" \