mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
36888: vcs_info: Prevent warn_create_global warning with '-preinit-' state
This is related to 33405. Turns out that not all other calls to
VCS_INFO_set are okay: With recent zsh versions the early call to that
function with the '-preinit-' argument causes a warning like this:
VCS_INFO_set:9: math parameter maxexports created globally
in function VCS_INFO_set
This fixes it.
This commit is contained in:
parent
21b6852b15
commit
2e600b432a
2 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue