diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-01 11:48:38 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-08-01 11:48:38 +0000 |
commit | 5e7e797ca90cd1c1b7ab54d39118f0b7469f348f (patch) | |
tree | d2b23a1d1d295b6e6007df82a3ce12d0e75cf4ad /Functions/Misc/add-zsh-hook | |
parent | dc72699b6c400e530b818250c943587b3ecf663e (diff) | |
download | zsh-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/add-zsh-hook')
-rw-r--r-- | Functions/Misc/add-zsh-hook | 2 |
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 |