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

[PATCH] vcs_info: Declare "msgs" in early context



The parameter *is* being declared with the redefinition of the
function, but not in its initial form, which gets you a warning
about the parameter being defined globally. This fixes it.
---
 Functions/VCS_Info/vcs_info | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
index 628dde9..f13f6b5 100644
--- a/Functions/VCS_Info/vcs_info
+++ b/Functions/VCS_Info/vcs_info
@@ -10,7 +10,7 @@
 
 setopt localoptions noksharrays extendedglob NO_shwordsplit
 local file func sys
-local -a static_functions
+local -a static_functions msgs
 local -i maxexports
 
 static_functions=(
-- 
2.6.4



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