about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-28 10:58:02 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-28 10:58:02 +0000
commit9e2dea114577c11716e18f744e0ab644323128f6 (patch)
treebf856992b6e0021d7578f35f6c28be5b260b014b
parent1deca81c23898d2720c135796c1b3f9a5fee9491 (diff)
downloadzsh-9e2dea114577c11716e18f744e0ab644323128f6.tar.gz
zsh-9e2dea114577c11716e18f744e0ab644323128f6.tar.xz
zsh-9e2dea114577c11716e18f744e0ab644323128f6.zip
*** empty log message ***
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Core/_multi_parts6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7df58ee88..c877f137a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-28  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 13813: Completion/Core/_multi_parts: make sure _multi_parts
+	doesn't add the empty string as a possible completion
+
 2001-03-28  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Completion/Commands/_complete_tag: mysterious extra
diff --git a/Completion/Core/_multi_parts b/Completion/Core/_multi_parts
index fe1406832..cf6d6dbac 100644
--- a/Completion/Core/_multi_parts
+++ b/Completion/Core/_multi_parts
@@ -163,14 +163,14 @@ while true; do
 
         compadd "$group[@]" "$expl[@]" -r "$sep" -S "$sep" "$opts[@]" \
 	        -p "$pref" "$tmp2[@]" -M "r:|${sep}=* r:|=* $matcher" - \
-                "${(@)${(@M)matches:#*${sep}}%%${sep}*}" && ret=0
+                "${(@)${(@)${(@M)matches:#*${sep}}%%${sep}*}:#}" && ret=0
         (( $matches[(I)${sep}*] )) &&
             compadd "$group[@]" "$expl[@]" -S '' "$opts[@]" \
 	            -p "$pref" \
                     -M "r:|${sep}=* r:|=* $matcher" - "$sep" && ret=0
         compadd "$group[@]" "$expl[@]" -r "$sep" -S "$sep" "$opts[@]" \
                 -p "$pref" "$tmp2[@]" -M "r:|${sep}=* r:|=* $matcher" - \
-                "${(@)${(@M)matches:#*?${sep}?*}%%${sep}*}" && ret=0
+                "${(@)${(@)${(@M)matches:#*?${sep}?*}%%${sep}*}:#}" && ret=0
         compadd "$group[@]" "$expl[@]" -S '' "$opts[@]" -p "$pref" "$tmp2[@]" \
                 -M "r:|${sep}=* r:|=* $matcher" - \
                 "${(@)matches:#*${sep}*}" && ret=0
@@ -182,7 +182,7 @@ while true; do
         compadd "$group[@]" "$expl[@]" "$opts[@]" \
 	        -p "$pref" -s "${i#*${sep}}" \
                 -M "r:|${sep}=* r:|=* $matcher" - \
-                "${(@)${(@M)matches:#*${sep}*}%%${sep}*}" && ret=0
+                "${(@)${(@)${(@M)matches:#*${sep}*}%%${sep}*}:#}" && ret=0
         compadd "$group[@]" "$expl[@]" -S '' "$opts[@]" -p "$pref" \
                 -M "r:|${sep}=* r:|=* $matcher" - \
                 "${(@)matches:#*${sep}*}" && ret=0