今天突然发现粘贴的时候就提示这个错误,通过查阅资料已经解决
解决方法
分析问题,是oh-my-zsh的bracketed-paste-magic功能出现了异常,并未找到更好的方法,暂时先禁用掉。
- 修改 ~/.oh-my-zsh/lib/misc.zsh中下方这一段代码,全部注释掉。
# if [[ $ZSH_VERSION != 5.1.1 ]]; then# for d in $fpath; do# if [[ -e "$d/url-quote-magic" ]]; then# if is-at-least 5.1; then# autoload -Uz bracketed-paste-magic# zle -N bracketed-paste bracketed-paste-magic# fi# autoload -Uz url-quote-magic# zle -N self-insert url-quote-magic# break# fi# done# fi