zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: vcs_info: set `max-exports' early after certain `start-up' hooks
@ 2011-06-30  7:26 Frank Terbeck
  0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2011-06-30  7:26 UTC (permalink / raw)
  To: zsh-workers

When a `start-up' hook returns `2' it sets up everything as if no VCS
was detected. For that to work, `max-exports' must be set. Otherwise
array subscripts in `VCS_INFO_set()' will not work.


diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
index 513489b..5a421df 100644
--- a/Functions/VCS_Info/vcs_info
+++ b/Functions/VCS_Info/vcs_info
@@ -70,6 +70,9 @@ vcs_info () {
     if (( retval == 1 )); then
         return 0
     elif (( retval == 2 )); then
+        # This needs `max-exports' set. We're still setting it again later
+        # for more specific contexts.
+        VCS_INFO_maxexports
         VCS_INFO_set --nvcs
         return 0
     fi


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-30  7:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-30  7:26 PATCH: vcs_info: set `max-exports' early after certain `start-up' hooks 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).