diff options
Diffstat (limited to 'Functions/Misc')
-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 |