1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

22492: url-quote-magic should detect syntactic word breaks correctly

This commit is contained in:
Bart Schaefer 2006-06-17 17:21:15 +00:00
parent 70a28c494e
commit 2da1610330
2 changed files with 8 additions and 1 deletions

@ -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

@ -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