From 756ce726f54988124f25f1b3d13d516148fddbf7 Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Sat, 5 Sep 2026 16:13:08 -0700 Subject: [PATCH] fix(safe-paste): drop set line that overwrote positional parameters 'set zle_bracketed_paste' cannot restore a zsh default: there is no option by that name, and 'set' with a bare word assigns positional parameters. Sourcing the plugin replaced $1 with the literal string 'zle_bracketed_paste'. zle_bracketed_paste is an array parameter, so nothing here was setting it either. Removing the line does not change paste behaviour. Co-Authored-By: Claude Opus 5 (1M context) --- plugins/safe-paste/safe-paste.plugin.zsh | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/safe-paste/safe-paste.plugin.zsh b/plugins/safe-paste/safe-paste.plugin.zsh index c7079059b..36135aa6e 100644 --- a/plugins/safe-paste/safe-paste.plugin.zsh +++ b/plugins/safe-paste/safe-paste.plugin.zsh @@ -11,7 +11,6 @@ # Load bracketed-paste-magic if zsh version is >= 5.1 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 return ### The rest of this file is NOT executed on zsh version >= 5.1 ###