zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: PATCH: Fix some more missing locals for $match
Date: Wed,  2 May 2012 12:48:12 +0200	[thread overview]
Message-ID: <1335955692-4359-1-git-send-email-mikachu@gmail.com> (raw)
In-Reply-To: <1335954913-3709-1-git-send-email-mikachu@gmail.com>

Found by simple
% grep -rl 'match\[' Functions
There's a lot of missing ones in Completion/ in theory, but _main_complete
locals it so it should be fine.

---
 Functions/VCS_Info/vcs_info_setsys |    1 +
 Functions/Zftp/zfcd_match          |    1 +
 Functions/Zle/url-quote-magic      |    2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Functions/VCS_Info/vcs_info_setsys b/Functions/VCS_Info/vcs_info_setsys
index 1484464..7797279 100644
--- a/Functions/VCS_Info/vcs_info_setsys
+++ b/Functions/VCS_Info/vcs_info_setsys
@@ -7,6 +7,7 @@ setopt extendedglob typeset_silent
 
 local sys
 typeset -ga VCS_INFO_backends
+local -a match
 
 VCS_INFO_backends=()
 
diff --git a/Functions/Zftp/zfcd_match b/Functions/Zftp/zfcd_match
index 16de5c8..d51c717 100644
--- a/Functions/Zftp/zfcd_match
+++ b/Functions/Zftp/zfcd_match
@@ -13,6 +13,7 @@ local ZFTP_VERBOSE=45
 # should we redirect 2>/dev/null or let the user see it?
 
 local tmpf=${TMPPREFIX}zfcm$$
+local -a match
 
 if [[ $ZFTP_SYSTEM = UNIX* ]]; then
   # hoo, aren't we lucky: this makes things so much easier
diff --git a/Functions/Zle/url-quote-magic b/Functions/Zle/url-quote-magic
index 4e12253..1fd5eb2 100644
--- a/Functions/Zle/url-quote-magic
+++ b/Functions/Zle/url-quote-magic
@@ -60,7 +60,7 @@
 #       Use compsys for nested quoting analysis and command parsing.
 
 # Establish default values for styles, but only if not already set
-local -a reply
+local -a reply match
 
 zstyle -m ':url-quote-magic:\*' url-metas '*' ||
     zstyle ':url-quote-magic:*' url-metas '*?[]^(|)~#{}='
-- 
1.7.10.GIT


  reply	other threads:[~2012-05-02 10:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-02 10:35 PATCH: Add missing local -a match in promptinit Mikael Magnusson
2012-05-02 10:48 ` Mikael Magnusson [this message]
2012-05-02 10:56   ` PATCH: Fix some more missing locals for $match Peter Stephenson
2012-05-02 12:51     ` Mikael Magnusson
2012-05-02 14:25       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1335955692-4359-1-git-send-email-mikachu@gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).