Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] vcs_info: Declare "msgs" in early context
- X-seq: zsh-workers 37451
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] vcs_info: Declare "msgs" in early context
- Date: Wed, 30 Dec 2015 14:58:32 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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