Permalink
Browse files

process deferred compdefs in the order they were called

  • Loading branch information...
wrboyce authored and sharat87 committed Jan 10, 2013
1 parent 5e23ab6 commit dbdac1aad8d2cec5b604b2afb538b074f1f72c44
Showing with 1 addition and 1 deletion.
  1. +1 −1 antigen.zsh
View
@@ -9,7 +9,7 @@ local _ANTIGEN_INSTALL_DIR="$(dirname $0)"
# Used to defer compinit/compdef
typeset -a __deferred_compdefs
-compdef () { __deferred_compdefs[$(($#__deferred_compdefs+1))]=$* }
+compdef () { __deferred_compdefs=(${__deferred_compdefs} "${*}") }
# Syntaxes
# antigen-bundle <url> [<loc>=/]

0 comments on commit dbdac1a

Please sign in to comment.