mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 02:51:01 +02:00
zsh-workers/8494
This commit is contained in:
parent
9a98d9ed96
commit
6532fa34ba
1 changed files with 3 additions and 3 deletions
|
@ -316,7 +316,7 @@ for prepath in "$prepaths[@]"; do
|
|||
# collected as the suffixes to make the completion code expand
|
||||
# it as far as possible.
|
||||
|
||||
if [[ "$tsuf" = */* ]]; then
|
||||
if [[ "$tpre" = */* ]]; then
|
||||
PREFIX="${donepath}${linepath}${cpre}${tpre%%/*}"
|
||||
SUFFIX="/${tsuf#*/}"
|
||||
else
|
||||
|
@ -390,8 +390,8 @@ for prepath in "$prepaths[@]"; do
|
|||
done
|
||||
|
||||
if [[ -z "$tmp4" ]]; then
|
||||
PREFIX="${opre}"
|
||||
SUFFIX="${osuf}"
|
||||
PREFIX="${opre}${osuf}"
|
||||
SUFFIX=""
|
||||
compadd -Qf -p "$linepath${testpath:q}" \
|
||||
-W "$prepath$realpath$testpath" "$ignore[@]" \
|
||||
"$addpfx[@]" "$addsfx[@]" "$remsfx[@]" \
|
||||
|
|
Loading…
Reference in a new issue