about summary refs log tree commit diff
path: root/Completion/Core/compdump
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/compdump')
-rw-r--r--Completion/Core/compdump8
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Core/compdump b/Completion/Core/compdump
index 67b6e0865..97a181084 100644
--- a/Completion/Core/compdump
+++ b/Completion/Core/compdump
@@ -34,14 +34,14 @@ done  >> $_d_file
 print ")" >> $_d_file
 
 print "\n_patcomps=(" >> $_d_file
-for _d_f in "$_patcomps[@]"; do
-  print -r - "'${_d_f//\'/'\\''}'"
+for _d_f in "${(ok@)_patcomps}"; do
+  print -r - "'${_d_f//\'/'\\''}'" "'${_patcomps[$_d_f]//\'/'\\''}'"
 done >> $_d_file
 print ")" >> $_d_file
 
 print "\n_postpatcomps=(" >> $_d_file
-for _d_f in "$_postpatcomps[@]"; do
-  print -r - "'${_d_f//\'/'\\''}'"
+for _d_f in "${(ok@)_postpatcomps}"; do
+  print -r - "'${_d_f//\'/'\\''}'" "'${_postpatcomps[$_d_f]//\'/'\\''}'"
 done >> $_d_file
 print ")" >> $_d_file