From 1f2bdc2aa27141eb41f7b0765d79020b6af8bbd0 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sat, 19 Dec 2015 10:48:34 +0000 Subject: unposted (after users/20873): Theoretical fix: don't parse print/echo escape sequences in $zle_bracketed_paste. --- Functions/Zle/edit-command-line | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions/Zle') diff --git a/Functions/Zle/edit-command-line b/Functions/Zle/edit-command-line index b8145525f..353f2609a 100644 --- a/Functions/Zle/edit-command-line +++ b/Functions/Zle/edit-command-line @@ -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)" -- cgit 1.4.1