From f71a7de56fa5fcc4b94f8e3a6344729511bd686d Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 4 Jan 2000 14:57:19 +0000 Subject: zsh-workers/9197 --- Completion/Core/_multi_parts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Completion/Core/_multi_parts') diff --git a/Completion/Core/_multi_parts b/Completion/Core/_multi_parts index 056f44bdd..935b13c74 100644 --- a/Completion/Core/_multi_parts +++ b/Completion/Core/_multi_parts @@ -93,7 +93,11 @@ while true; do else # No exact match, see how many strings match what's on the line. - compadd -O tmp1 - "${(@)matches%%${sep}*}" + builtin compadd -O tmp1 - "${(@)matches%%${sep}*}" + + [[ $#tmp1 -eq 0 && -n "$_comp_correct" ]] && + compadd -O tmp1 - "${(@)matches%%${sep}*}" + tmp2=( "$tmp1[@]" ) tmp1=( "$tmp2[@]" ) -- cgit 1.4.1