about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-11-12 12:09:47 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-11-12 12:09:47 +0000
commit43136502b7b7b40e57b49a5e67b7097080ed743a (patch)
treea8db27ceb0480106257912bd669c3fbb7c27a9d6
parentb10cb015c6e13481fdb1aaaa663d2f9e728796a9 (diff)
downloadzsh-43136502b7b7b40e57b49a5e67b7097080ed743a.tar.gz
zsh-43136502b7b7b40e57b49a5e67b7097080ed743a.tar.xz
zsh-43136502b7b7b40e57b49a5e67b7097080ed743a.zip
17928: Zvi Har'El: don't interpret escapes when setting the command buffer
-rw-r--r--ChangeLog4
-rw-r--r--Functions/Zle/edit-command-line2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ff9c23725..ed4e27934 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-11-12  Oliver Kiddle  <opk@zsh.org>
 
+	* 17928: Zvi Har'El <rl@math.technion.ac.il>:
+	Functions/Zle/edit-command-line: don't interpret escapes when
+	setting the command buffer
+
 	* Thierry Vignaud <tvignaud@mandrakesoft.com>:
 	Completion/Unix/Command/_links, Completion/Mandrake/Command/_urpmi:
 	add option descriptions and missing options
diff --git a/Functions/Zle/edit-command-line b/Functions/Zle/edit-command-line
index a7c26e542..f11a37482 100644
--- a/Functions/Zle/edit-command-line
+++ b/Functions/Zle/edit-command-line
@@ -11,7 +11,7 @@ local tmpfile=${TMPPREFIX:-/tmp/zsh}ecl$$
 print -R - "$PREBUFFER$BUFFER" >$tmpfile
 exec </dev/tty
 ${VISUAL:-${EDITOR:-vi}} $tmpfile
-print -z - "$(<$tmpfile)" 
+print -Rz - "$(<$tmpfile)" 
 
 command rm -f $tmpfile
 zle send-break		# Force reload from the buffer stack