diff options
| author | Adam Katz <6454774+adamhotep@users.noreply.github.com> | 2024-07-24 08:36:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-24 14:36:08 +0200 |
| commit | 7303385b1fc7030bef90589c32120f90eb57c3e1 (patch) | |
| tree | aeb2ae6d4dcf12b53af6f9e206578a668d5f4466 /plugins/safe-paste/safe-paste.plugin.zsh | |
| parent | 64c2c049aaa7b33673b4d15a69b02ec87b8dd9b8 (diff) | |
| download | zsh-7303385b1fc7030bef90589c32120f90eb57c3e1.tar.gz zsh-7303385b1fc7030bef90589c32120f90eb57c3e1.tar.bz2 zsh-7303385b1fc7030bef90589c32120f90eb57c3e1.zip | |
fix(safe-paste): properly test Zsh version number (#12565)
Diffstat (limited to 'plugins/safe-paste/safe-paste.plugin.zsh')
| -rw-r--r-- | plugins/safe-paste/safe-paste.plugin.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/safe-paste/safe-paste.plugin.zsh b/plugins/safe-paste/safe-paste.plugin.zsh index d443ae8a2..c7079059b 100644 --- a/plugins/safe-paste/safe-paste.plugin.zsh +++ b/plugins/safe-paste/safe-paste.plugin.zsh @@ -9,7 +9,8 @@ # 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 -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 autoload -Uz bracketed-paste-magic zle -N bracketed-paste bracketed-paste-magic |
