about summary refs log tree commit diff
path: root/Completion/Core
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 /Completion/Core
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)
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_multi_parts4
1 files changed, 2 insertions, 2 deletions
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