summaryrefslogtreecommitdiff
path: root/lib/misc.zsh
diff options
context:
space:
mode:
authoriCross <rja@icross.cc>2015-09-10 14:08:02 +0800
committeriCross <rja@icross.cc>2015-09-10 14:08:02 +0800
commit19c0b185ad9b37b448a979fb6cc995cc648e76a4 (patch)
treee9128df9a8adae18c27f3463573254f6a6c34db3 /lib/misc.zsh
parent9c08641d7c2aae0c82fa5ad91f94c67b70115ba5 (diff)
downloadzsh-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.zsh4
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