diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-21 11:42:01 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-21 11:42:01 +0000 |
| commit | e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab (patch) | |
| tree | 01d1150c89863e4eba0fe28edbb4943780d09742 /Completion/Core | |
| parent | zsh-workers/9809 (diff) | |
| download | zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar.gz zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar.bz2 zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar.lz zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar.xz zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar.zst zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.zip | |
zsh-workers/9810
Diffstat (limited to 'Completion/Core')
| -rw-r--r-- | Completion/Core/_multi_parts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Core/_multi_parts b/Completion/Core/_multi_parts index 6f758f761..92da26f9a 100644 --- a/Completion/Core/_multi_parts +++ b/Completion/Core/_multi_parts @@ -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}" |
