about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-29 08:39:39 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-03-29 08:39:39 +0000
commit2249e5c319219a2a4d99b8439d4be511642cd9ec (patch)
tree3f8c1c7bb1c0cfe973b7c0453db79294cf761cb9
parent7fd57d5473e51e03a2f2b5a18a16411b9a16cc4b (diff)
downloadzsh-2249e5c319219a2a4d99b8439d4be511642cd9ec.tar.gz
zsh-2249e5c319219a2a4d99b8439d4be511642cd9ec.tar.xz
zsh-2249e5c319219a2a4d99b8439d4be511642cd9ec.zip
next try to get rid of empty strings being added as possible completion by _multi_parts (13830)
-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