mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
22492: url-quote-magic should detect syntactic word breaks correctly
This commit is contained in:
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>
|
2006-06-16 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* unposted: Src/exec.c: remove TODO in exec.c redundant
|
* unposted: Src/exec.c: remove TODO in exec.c redundant
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,7 @@ function url-quote-magic {
|
||||||
if [[ "${(Q)LBUFFER}$KEYS" == "${(Q)lbuf}" ]]
|
if [[ "${(Q)LBUFFER}$KEYS" == "${(Q)lbuf}" ]]
|
||||||
then
|
then
|
||||||
local -a words
|
local -a words
|
||||||
words=("${(@Q)${(q)=LBUFFER}}")
|
words=("${(@Q)${(z)lbuf}}")
|
||||||
local urlseps urlmetas urlglobbers localschema otherschema
|
local urlseps urlmetas urlglobbers localschema otherschema
|
||||||
if [[ "$words[-1]" == (#b)([^:]##):* ]]
|
if [[ "$words[-1]" == (#b)([^:]##):* ]]
|
||||||
then
|
then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue