about summary refs log tree commit diff
path: root/Completion/compdump
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-07-29 09:01:41 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-07-29 09:01:41 +0000
commitf11ec8fbacc481e06654e31e8b1ff809f731a38f (patch)
tree09541c4f1b1b3a6167caaa0abb3e5f8bdba46d6f /Completion/compdump
parent71432c32055b1a07835bcd01ccc6474322b1a862 (diff)
downloadzsh-f11ec8fbacc481e06654e31e8b1ff809f731a38f.tar.gz
zsh-f11ec8fbacc481e06654e31e8b1ff809f731a38f.tar.xz
zsh-f11ec8fbacc481e06654e31e8b1ff809f731a38f.zip
25346: fix some variables in compdump
Diffstat (limited to 'Completion/compdump')
-rw-r--r--Completion/compdump11
1 files changed, 6 insertions, 5 deletions
diff --git a/Completion/compdump b/Completion/compdump
index b3476086c..03b929fc3 100644
--- a/Completion/compdump
+++ b/Completion/compdump
@@ -79,13 +79,13 @@ print >> $_d_file
 # argument to zle does not begin with a `_').
 
 _d_bks=()
-_d_complist=
+typeset _d_complist=
 zle -lL |
   while read -rA _d_line; do
     if [[ ${_d_line[3]} = _* && ${_d_line[5]} = _* ]]; then
       if [[ -z "$_d_complist" && ${_d_line[4]} = .menu-select ]]; then
         print 'zmodload -i zsh/complist'
-	d_complist=yes
+	_d_complist=yes
       fi
       print -r - ${_d_line}
       _d_bks+=(${_d_line[3]})
@@ -107,7 +107,7 @@ _d_als=(${(o)$(typeset +fm '_*')})
 
 # print them out:  about five to a line looks neat
 
-_i=5
+integer _i=5
 print -n autoload -Uz >> $_d_file
 while (( $#_d_als )); do
   if (( ! $+_compautos[$_d_als[1]] )); then
@@ -122,8 +122,9 @@ done >> $_d_file
 
 print >> $_d_file
 
-for _i in "${(ok@)_compautos}"; do
-  print "autoload -Uz $_compautos[$_i] $_i" >> $_d_file
+local _c
+for _c in "${(ok@)_compautos}"; do
+  print "autoload -Uz $_compautos[$_c] $_c" >> $_d_file
 done
 
 print >> $_d_file