Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug in url-quote-magic?



On Jun 13,  7:08am, Bart Schaefer wrote:
} Subject: Re: Bug in url-quote-magic?
}
} On Jun 12,  6:10pm, Ulrich Dangel wrote:
} }
} } while using url-quote-magic i discoverd a strange behaviour.
} } If i enter an url, followed by space, and after that a semicolon, the
} } semicolon is escaped.
} 
} I can see where this might be unexpected, but I'm not sure your fix is
} the right one.  I think it might be preferable to change line 117

This seems to do the trick; let me know.

Index: Functions/Zle/url-quote-magic
===================================================================
--- Functions/Zle/url-quote-magic	14 Feb 2004 19:39:27 -0000
+++ Functions/Zle/url-quote-magic	14 Jun 2006 04:18:31 -0000
@@ -114,7 +114,7 @@
 	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



Messages sorted by: Reverse Date, Date, Thread, Author