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) <noreply@anthropic.com>
This commit is contained in:
Robby Russell
2026-09-05 16:13:08 -07:00
co-authored by Claude Opus 5
parent 6755d18956
commit 756ce726f5
-1
View File
@@ -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 ###