1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

unposted (after users/20873): Theoretical fix: don't parse print/echo escape sequences in $zle_bracketed_paste.

This commit is contained in:
Daniel Shahaf 2015-12-19 10:48:34 +00:00
parent 9d2fe86564
commit 1f2bdc2aa2
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,9 @@
2015-12-19 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted (after users/20873): Functions/Zle/edit-command-line:
Theoretical fix: don't parse print/echo escape sequences in
$zle_bracketed_paste.
* 37257 (in part): Test/A06assign.ztst: Add array assignment tests.
2015-12-16 Peter Stephenson <p.stephenson@samsung.com>

View file

@ -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)"