From 246a63d9d32e3291ef4993719565d0f087f795a3 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 1 Apr 2012 17:28:31 +0000 Subject: users/16944: more locals needed in url-quote-magic --- Functions/Zle/url-quote-magic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Functions') 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" -- cgit 1.4.1