32 lines
907 B
Diff
32 lines
907 B
Diff
|
Fix bug in VCS_INFO_nbcsformats which breaks my prompt....
|
||
|
|
||
|
Reported upstream in:
|
||
|
http://www.zsh.org/mla/users/2016/msg00007.html
|
||
|
And fix suggested in:
|
||
|
http://www.zsh.org/mla/users/2016/msg00008.html
|
||
|
|
||
|
diff --git a/Functions/VCS_Info/VCS_INFO_nvcsformats b/Functions/VCS_Info/VCS_INFO_nvcsformats
|
||
|
index 203a86d..581aa5a 100644
|
||
|
--- a/Functions/VCS_Info/VCS_INFO_nvcsformats
|
||
|
+++ b/Functions/VCS_Info/VCS_INFO_nvcsformats
|
||
|
@@ -4,7 +4,6 @@
|
||
|
|
||
|
setopt localoptions noksharrays NO_shwordsplit
|
||
|
local c v rr
|
||
|
-local -a msgs
|
||
|
|
||
|
if [[ $1 == '-preinit-' ]] ; then
|
||
|
c='default'
|
||
|
diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
|
||
|
index 628dde9..a44cd9e 100644
|
||
|
--- a/Functions/VCS_Info/vcs_info
|
||
|
+++ b/Functions/VCS_Info/vcs_info
|
||
|
@@ -10,6 +10,7 @@
|
||
|
|
||
|
setopt localoptions noksharrays extendedglob NO_shwordsplit
|
||
|
local file func sys
|
||
|
+local -a msgs
|
||
|
local -a static_functions
|
||
|
local -i maxexports
|
||
|
|