diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2006-06-17 17:21:15 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2006-06-17 17:21:15 +0000 |
| commit | 2da1610330482946adb0df10e944d7c9d04a10ad (patch) | |
| tree | 908ada68d64c1d27f34cfed2770243374bf4d40e | |
| parent | unposted: remove redundant TODO (diff) | |
| download | zsh-2da1610330482946adb0df10e944d7c9d04a10ad.tar zsh-2da1610330482946adb0df10e944d7c9d04a10ad.tar.gz zsh-2da1610330482946adb0df10e944d7c9d04a10ad.tar.bz2 zsh-2da1610330482946adb0df10e944d7c9d04a10ad.tar.lz zsh-2da1610330482946adb0df10e944d7c9d04a10ad.tar.xz zsh-2da1610330482946adb0df10e944d7c9d04a10ad.tar.zst zsh-2da1610330482946adb0df10e944d7c9d04a10ad.zip | |
22492: url-quote-magic should detect syntactic word breaks correctly
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | Functions/Zle/url-quote-magic | 2 |
2 files changed, 8 insertions, 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> * unposted: Src/exec.c: remove TODO in exec.c redundant diff --git a/Functions/Zle/url-quote-magic b/Functions/Zle/url-quote-magic index 790de43cd..826d26d09 100644 --- a/Functions/Zle/url-quote-magic +++ b/Functions/Zle/url-quote-magic @@ -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 |
