mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-09-28 05:56:07 +02:00
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:
co-authored by
Claude Opus 5
parent
6755d18956
commit
756ce726f5
@@ -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 ###
|
||||
|
||||
Reference in New Issue
Block a user