mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-21 00:51:07 +01:00
unposted (after users/20873): Theoretical fix: don't parse print/echo escape sequences in $zle_bracketed_paste.
This commit is contained in:
parent
9d2fe86564
commit
1f2bdc2aa2
2 changed files with 6 additions and 2 deletions
|
|
@ -12,7 +12,7 @@
|
|||
# Compute the cursor's position in bytes, not characters.
|
||||
setopt localoptions nomultibyte noksharrays
|
||||
|
||||
(( $+zle_bracketed_paste )) && print -n $zle_bracketed_paste[2]
|
||||
(( $+zle_bracketed_paste )) && print -r -n - $zle_bracketed_paste[2]
|
||||
|
||||
# Open the editor, placing the cursor at the right place if we know how.
|
||||
local editor=${${VISUAL:-${EDITOR:-vi}}}
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
(*) ${=editor} $1;;
|
||||
esac
|
||||
|
||||
(( $+zle_bracketed_paste )) && print -n $zle_bracketed_paste[1]
|
||||
(( $+zle_bracketed_paste )) && print -r -n - $zle_bracketed_paste[1]
|
||||
|
||||
# Replace the buffer with the editor output.
|
||||
print -Rz - "$(<$1)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue