From 2249e5c319219a2a4d99b8439d4be511642cd9ec Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 29 Mar 2001 08:39:39 +0000 Subject: [PATCH] next try to get rid of empty strings being added as possible completion by _multi_parts (13830) --- ChangeLog | 6 ++++++ Completion/Core/_multi_parts | 4 ++-- 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 + + * 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 * 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