about summary refs log tree commit diff
path: root/Functions/Misc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-08-01 11:48:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-08-01 11:48:38 +0000
commit5e7e797ca90cd1c1b7ab54d39118f0b7469f348f (patch)
treed2b23a1d1d295b6e6007df82a3ce12d0e75cf4ad /Functions/Misc
parentdc72699b6c400e530b818250c943587b3ecf663e (diff)
downloadzsh-5e7e797ca90cd1c1b7ab54d39118f0b7469f348f.tar.gz
zsh-5e7e797ca90cd1c1b7ab54d39118f0b7469f348f.tar.xz
zsh-5e7e797ca90cd1c1b7ab54d39118f0b7469f348f.zip
TCP functions: fix some variable handling problems,
also standardise indentation
add-zsh-hook: fix check for existence of hook function in existing hook
Diffstat (limited to 'Functions/Misc')
-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 f534980f5..aedc1e754 100644
--- a/Functions/Misc/add-zsh-hook
+++ b/Functions/Misc/add-zsh-hook
@@ -66,7 +66,7 @@ if (( del )); then
   fi
 else
   if (( ${(P)+hook} )); then
-    if (( ${(P)hook[(I)$fn]} == 0 )); then
+    if (( ${${(P)hook}[(I)$fn]} == 0 )); then
       set -A $hook ${(P)hook} $fn
     fi
   else