From 19c0b185ad9b37b448a979fb6cc995cc648e76a4 Mon Sep 17 00:00:00 2001 From: iCross Date: Thu, 10 Sep 2015 14:08:02 +0800 Subject: [PATCH] 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 --- lib/misc.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/misc.zsh b/lib/misc.zsh index 6d1a64e8..bdb88404 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