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
Diff
1diff --git a/lib/misc.zsh b/lib/misc.zsh
2index 6d1a64e8dbc540fcbe3a84df20082d2416a4e1de..bdb884046af81a7d108593aeec55985733a82c8d 100644
3--- a/lib/misc.zsh
4+++ b/lib/misc.zsh
5@@ -1,6 +1,10 @@
6 ## Load smart urls if available
7 for d in $fpath; do
8 if [[ -e "$d/url-quote-magic" ]]; then
9+ if [[ -e "$d/bracketed-paste-magic" ]]; then
10+ autoload -Uz bracketed-paste-magic
11+ zle -N bracketed-paste bracketed-paste-magic
12+ fi
13 autoload -U url-quote-magic
14 zle -N self-insert url-quote-magic
15 fi