about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-04-01 17:28:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-04-01 17:28:31 +0000
commit246a63d9d32e3291ef4993719565d0f087f795a3 (patch)
treed872ddb58ec9a7003fa1f21f3fbf0b2c467d6cab
parenta2ad2a4bbd47b93f31c0d57efd7d232b15325397 (diff)
downloadzsh-246a63d9d32e3291ef4993719565d0f087f795a3.tar.gz
zsh-246a63d9d32e3291ef4993719565d0f087f795a3.tar.xz
zsh-246a63d9d32e3291ef4993719565d0f087f795a3.zip
users/16944: more locals needed in url-quote-magic
-rw-r--r--ChangeLog7
-rw-r--r--Functions/Zle/url-quote-magic3
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a6cccf14..49879afd5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-01  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* users/16944: Functions/Zle/url-quote-magic: some more "local"s
+	needed.
+
 2012-03-30  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Functions/Zle/split-shell-arguments: add some
@@ -16141,5 +16146,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5619 $
+* $Revision: 1.5620 $
 *****************************************************
diff --git a/Functions/Zle/url-quote-magic b/Functions/Zle/url-quote-magic
index c7bb88c5d..4e12253e7 100644
--- a/Functions/Zle/url-quote-magic
+++ b/Functions/Zle/url-quote-magic
@@ -84,7 +84,7 @@ zstyle -m ':urlglobber' url-other-schema '*' ||
 # Define the "urlglobber" helper function and shorthand "globurl" alias
 
 function urlglobber {
-    local -a args globbed localschema otherschema
+    local -a args globbed localschema otherschema reply
     local arg command="$1"
     shift
     zstyle -s :urlglobber url-local-schema localschema '|'
@@ -109,6 +109,7 @@ alias globurl='noglob urlglobber '
 function url-quote-magic {
     setopt localoptions noksharrays extendedglob
     local qkey="${(q)KEYS}"
+    local -a reply
     if [[ "$KEYS" != "$qkey" ]]
     then
 	local lbuf="$LBUFFER$qkey"