From 5e7e797ca90cd1c1b7ab54d39118f0b7469f348f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 1 Aug 2008 11:48:38 +0000 Subject: TCP functions: fix some variable handling problems, also standardise indentation add-zsh-hook: fix check for existence of hook function in existing hook --- Functions/Misc/add-zsh-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions/Misc/add-zsh-hook') 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 -- cgit 1.4.1