about summary refs log tree commit diff
path: root/Completion/Core/_multi_parts
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-04 14:57:19 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-04 14:57:19 +0000
commitf71a7de56fa5fcc4b94f8e3a6344729511bd686d (patch)
tree479397c832980ab3b880ee45d9e57ea00e1b53bb /Completion/Core/_multi_parts
parentd05db5e29f3798e398c11fc416b4c093b3ef8338 (diff)
downloadzsh-f71a7de56fa5fcc4b94f8e3a6344729511bd686d.tar.gz
zsh-f71a7de56fa5fcc4b94f8e3a6344729511bd686d.tar.xz
zsh-f71a7de56fa5fcc4b94f8e3a6344729511bd686d.zip
zsh-workers/9197
Diffstat (limited to 'Completion/Core/_multi_parts')
-rw-r--r--Completion/Core/_multi_parts6
1 files changed, 5 insertions, 1 deletions
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[@]" )