1
0
Fork 0
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:
Bart Schaefer 2006-06-17 17:21:15 +00:00
parent 70a28c494e
commit 2da1610330
2 changed files with 8 additions and 1 deletions

View file

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