From 2da1610330482946adb0df10e944d7c9d04a10ad Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 17 Jun 2006 17:21:15 +0000 Subject: 22492: url-quote-magic should detect syntactic word breaks correctly --- ChangeLog | 7 +++++++ Functions/Zle/url-quote-magic | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3870cd77c..60de48f53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-06-17 Barton E. Schaefer + + * 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 * 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 -- cgit 1.4.1