浏览代码

Merge pull request #4337 from iCross/master

fix url-quote-magic not working issue
Robby Russell 9 年之前
父节点
当前提交
b5a5bc9ae5
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/misc.zsh

+ 4 - 0
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