summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2015-12-30 14:58:32 +0100
committerFrank Terbeck <ft@bewatermyfriend.org>2015-12-30 15:23:08 +0100
commitdab6e7c2319c0aadb39eb9cce677e0a35da8314d (patch)
treed30173e732b367a29055db25e8b3b1191a389311
parent5f3e47ca5e8b98480d73b99a51606dda8be9cb32 (diff)
downloadzsh-dab6e7c2319c0aadb39eb9cce677e0a35da8314d.tar.gz
zsh-dab6e7c2319c0aadb39eb9cce677e0a35da8314d.tar.xz
zsh-dab6e7c2319c0aadb39eb9cce677e0a35da8314d.zip
37451: 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.
-rw-r--r--ChangeLog5
-rw-r--r--Functions/VCS_Info/vcs_info2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b46d7eda8..ef80f96fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-30  Frank Terbeck  <ft@bewatermyfriend.org>
+
+	* 37451: Functions/VCS_Info/vcs_info: vcs_info: Declare "msgs" in
+	early context
+
 2015-12-27  Axel Beckert  <abe@deuxchevaux.org>
 
 	* 37438: Completion/Debian/Command/_aptitude: Also parse --help/-h
diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
index 628dde9b1..f13f6b501 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=(