about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-21 11:42:01 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-21 11:42:01 +0000
commite662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab (patch)
tree01d1150c89863e4eba0fe28edbb4943780d09742 /Completion/Core
parent256cde1884ee30a291b8845e4e817031ffca3e87 (diff)
downloadzsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar.gz
zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.tar.xz
zsh-e662d7f0eb5bdcf2b148ba835d0a0b01b0a47eab.zip
zsh-workers/9810
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_multi_parts6
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}"