about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Functions/Zle/url-quote-magic2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3870cd77c..60de48f53 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-06-17  Barton E. Schaefer  <schaefer@brasslantern.com>
+
+	* 22492: Functions/Zle/url-quote-magic: properly detect when a new
+	word (in the zsh syntax sense) has been started, and thus avoid
+	improperly quoting a metacharacter that is the first character of
+	a new word.
+
 2006-06-16  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Src/exec.c: remove TODO in exec.c redundant
diff --git a/Functions/Zle/url-quote-magic b/Functions/Zle/url-quote-magic
index 790de43cd..826d26d09 100644
--- a/Functions/Zle/url-quote-magic
+++ b/Functions/Zle/url-quote-magic
@@ -114,7 +114,7 @@ function url-quote-magic {
 	if [[ "${(Q)LBUFFER}$KEYS" == "${(Q)lbuf}" ]]
 	then
 	    local -a words
-	    words=("${(@Q)${(q)=LBUFFER}}")
+	    words=("${(@Q)${(z)lbuf}}")
 	    local urlseps urlmetas urlglobbers localschema otherschema
 	    if [[ "$words[-1]" == (#b)([^:]##):* ]]
 	    then