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:
parent
70a28c494e
commit
2da1610330
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user