about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Core/_multi_parts4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5cda6788e..244f0bc8f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-29  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 13830: Completion/Core/_multi_parts: next try to get rid of
+	empty strings being added as possible completion by
+	_multi_parts
+
 2001-03-28  Bart Schaefer  <schaefer@zsh.org>
 
 	* 12724: Doc/Zsh/builtins.yo: Nobody has come up with a better fix
diff --git a/Completion/Core/_multi_parts b/Completion/Core/_multi_parts
index cf6d6dbac..6f6ef12f2 100644
--- a/Completion/Core/_multi_parts
+++ b/Completion/Core/_multi_parts
@@ -91,10 +91,10 @@ while true; do
   else
     # No exact match, see how many strings match what's on the line.
 
-    builtin compadd -O tmp1 - "${(@)matches%%${sep}*}"
+    builtin compadd -O tmp1 - "${(@)${(@)matches%%${sep}*}:#}"
 
     [[ $#tmp1 -eq 0 && -n "$_comp_correct" ]] &&
-      compadd -O tmp1 - "${(@)matches%%${sep}*}"
+      compadd -O tmp1 - "${(@)${(@)matches%%${sep}*}:#}"
 
     if [[ $#tmp1 -eq 1 ]]; then