mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
zsh-workers/9810
This commit is contained in:
parent
256cde1884
commit
e662d7f0eb
1 changed files with 5 additions and 1 deletions
|
@ -80,7 +80,11 @@ while true; do
|
|||
# use the stuff from the line. This avoids having `foo' complete to
|
||||
# both `foo' and `foobar'.
|
||||
|
||||
tmp1=( "${(@M)matches:#${PREFIX}${SUFFIX}${sep}*}" )
|
||||
if [[ -n "$PREFIX$SUFFIX" || "$pre" = ${sep}* ]]; then
|
||||
tmp1=( "${(@M)matches:#${PREFIX}${SUFFIX}${sep}*}" )
|
||||
else
|
||||
tmp1=
|
||||
fi
|
||||
|
||||
if (( $#tmp1 )); then
|
||||
npref="${PREFIX}${SUFFIX}${sep}"
|
||||
|
|
Loading…
Reference in a new issue