summary refs log tree commit diff
path: root/Functions/Misc/add-zsh-hook
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-04-19 19:54:00 +0000
committerClint Adams <clint@users.sourceforge.net>2007-04-19 19:54:00 +0000
commit8f0fefdbfdd61d1400852c34a94b3827cf88285a (patch)
treed9630245760f6dc6e62006460311653d861c3032 /Functions/Misc/add-zsh-hook
parent200059e02d3b8eec8abaa44b047032a6ad7ca7bd (diff)
downloadzsh-8f0fefdbfdd61d1400852c34a94b3827cf88285a.tar.gz
zsh-8f0fefdbfdd61d1400852c34a94b3827cf88285a.tar.xz
zsh-8f0fefdbfdd61d1400852c34a94b3827cf88285a.zip
23301: fix semicolon mistyped as a colon.
Diffstat (limited to 'Functions/Misc/add-zsh-hook')
-rw-r--r--Functions/Misc/add-zsh-hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Misc/add-zsh-hook b/Functions/Misc/add-zsh-hook
index fa8015a3d..b11db5b5c 100644
--- a/Functions/Misc/add-zsh-hook
+++ b/Functions/Misc/add-zsh-hook
@@ -52,7 +52,7 @@ if (( del )); then
     (( ${(P)#hook} )) || unset $hook
   fi
 else
-  if (( ${(P)+hook} )): then
+  if (( ${(P)+hook} )); then
     if (( ${(P)hook[(I)$fn]} == 0 )); then
       set -A $hook ${(P)hook} $fn
     fi