* [PATCH] vcs_info: Declare "msgs" in early context
@ 2015-12-30 13:58 Frank Terbeck
0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2015-12-30 13:58 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-30 14:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-30 13:58 [PATCH] vcs_info: Declare "msgs" in early context Frank Terbeck
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).