Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: vcs_info: Ignore chpwd_functions[] in VCS_INFO_realpath()



Spotted and fix suggested by Bart Trojanowski <bart@xxxxxxxxx>.

Regards, Frank
---
 Functions/VCS_Info/VCS_INFO_realpath |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Functions/VCS_Info/VCS_INFO_realpath b/Functions/VCS_Info/VCS_INFO_realpath
index c0f48a4..07a9749 100644
--- a/Functions/VCS_Info/VCS_INFO_realpath
+++ b/Functions/VCS_Info/VCS_INFO_realpath
@@ -11,6 +11,7 @@ setopt localoptions NO_shwordsplit
 
 (
     (( ${+functions[chpwd]} )) && unfunction chpwd
+    (( ${#chpwd_functions} )) && chpwd_functions=()
     setopt chaselinks
     builtin cd $1 2>/dev/null && pwd
 )
-- 
1.7.0



Messages sorted by: Reverse Date, Date, Thread, Author