mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02: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
|
|
@ -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…
Add table
Add a link
Reference in a new issue