diff options
author | iCross <rja@icross.cc> | 2015-09-10 14:08:02 +0800 |
---|---|---|
committer | iCross <rja@icross.cc> | 2015-09-10 14:08:02 +0800 |
commit | 19c0b185ad9b37b448a979fb6cc995cc648e76a4 (patch) | |
tree | e9128df9a8adae18c27f3463573254f6a6c34db3 /lib/misc.zsh | |
parent | 9c08641d7c2aae0c82fa5ad91f94c67b70115ba5 (diff) | |
download | zsh-19c0b185ad9b37b448a979fb6cc995cc648e76a4.tar.gz zsh-19c0b185ad9b37b448a979fb6cc995cc648e76a4.tar.bz2 zsh-19c0b185ad9b37b448a979fb6cc995cc648e76a4.zip |
fix url-quote-magic not working issue
Incompatibilites between 5.0.8 and 5.1:
bracketed-paste-magic may also be necessary in order to apply url-quote-magic.
Reference:
https://github.com/zsh-users/zsh/blob/a9df6aaa702abf761b155cd842a7f6917be44139/Functions/Zle/url-quote-magic#L11
Diffstat (limited to 'lib/misc.zsh')
-rw-r--r-- | lib/misc.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/misc.zsh b/lib/misc.zsh index 6d1a64e8d..bdb884046 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -1,6 +1,10 @@ ## Load smart urls if available for d in $fpath; do if [[ -e "$d/url-quote-magic" ]]; then + if [[ -e "$d/bracketed-paste-magic" ]]; then + autoload -Uz bracketed-paste-magic + zle -N bracketed-paste bracketed-paste-magic + fi autoload -U url-quote-magic zle -N self-insert url-quote-magic fi |