summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/VCS_Info/vcs_info2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c84b643b4..70a8d2e2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-18 Frank Terbeck <ft@bewatermyfriend.org>
+
+ * 36888: Functions/VCS_Info/vcs_info: vcs_info: Prevent
+ warn_create_global warning with '-preinit-' state
+
2015-10-15 Peter Stephenson <p.stephenson@samsung.com>
* 36864: Completion/Unix/Command/_nm,
diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
index 350b189e9..628dde9b1 100644
--- a/Functions/VCS_Info/vcs_info
+++ b/Functions/VCS_Info/vcs_info
@@ -11,6 +11,7 @@
setopt localoptions noksharrays extendedglob NO_shwordsplit
local file func sys
local -a static_functions
+local -i maxexports
static_functions=(
VCS_INFO_adjust
@@ -38,6 +39,7 @@ for func in ${static_functions} ; do
done
[[ -n ${(Mk)parameters:#vcs_info_msg_<->_} ]] && unset ${parameters[(I)vcs_info_msg_<->_]}
+VCS_INFO_maxexports
VCS_INFO_set --nvcs '-preinit-'
vcs_info_setsys