mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-13 08:01:27 +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
|
|
@ -1,5 +1,9 @@
|
||||||
2015-12-19 Daniel Shahaf <d.s@daniel.shahaf.name>
|
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.
|
* 37257 (in part): Test/A06assign.ztst: Add array assignment tests.
|
||||||
|
|
||||||
2015-12-16 Peter Stephenson <p.stephenson@samsung.com>
|
2015-12-16 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
# Compute the cursor's position in bytes, not characters.
|
# Compute the cursor's position in bytes, not characters.
|
||||||
setopt localoptions nomultibyte noksharrays
|
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.
|
# Open the editor, placing the cursor at the right place if we know how.
|
||||||
local editor=${${VISUAL:-${EDITOR:-vi}}}
|
local editor=${${VISUAL:-${EDITOR:-vi}}}
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
(*) ${=editor} $1;;
|
(*) ${=editor} $1;;
|
||||||
esac
|
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.
|
# Replace the buffer with the editor output.
|
||||||
print -Rz - "$(<$1)"
|
print -Rz - "$(<$1)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue