mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 00:10:08 +00:00
fix(safe-paste): properly test Zsh version number (#12565)
This commit is contained in:
parent
64c2c049aa
commit
7303385b1f
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
||||||
# https://github.com/zsh-users/zsh/blob/f702e17b14d75aa21bff014168fa9048124db286/Functions/Zle/bracketed-paste-magic#L9-L12
|
# https://github.com/zsh-users/zsh/blob/f702e17b14d75aa21bff014168fa9048124db286/Functions/Zle/bracketed-paste-magic#L9-L12
|
||||||
|
|
||||||
# Load bracketed-paste-magic if zsh version is >= 5.1
|
# Load bracketed-paste-magic if zsh version is >= 5.1
|
||||||
if [[ ${ZSH_VERSION:0:3} -ge 5.1 ]]; then
|
autoload -Uz is-at-least
|
||||||
|
if is-at-least 5.1; then
|
||||||
set zle_bracketed_paste # Explicitly restore this zsh default
|
set zle_bracketed_paste # Explicitly restore this zsh default
|
||||||
autoload -Uz bracketed-paste-magic
|
autoload -Uz bracketed-paste-magic
|
||||||
zle -N bracketed-paste bracketed-paste-magic
|
zle -N bracketed-paste bracketed-paste-magic
|
||||||
|
|
Loading…
Reference in a new issue