From 2249e5c319219a2a4d99b8439d4be511642cd9ec Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 29 Mar 2001 08:39:39 +0000 Subject: next try to get rid of empty strings being added as possible completion by _multi_parts (13830) --- Completion/Core/_multi_parts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion') 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 -- cgit 1.4.1