summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-03-11 19:30:35 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-03-11 19:30:35 +0000
commitc9847167089918bb8e11d1f1a83fe1015167ccac (patch)
treeed2a69477fd9c2b7c7dc06b73aa99a48a7186a0a /Functions
parentf46ad1753bc86fddddbef87ffa659f66bbadef5d (diff)
downloadzsh-c9847167089918bb8e11d1f1a83fe1015167ccac.tar.gz
zsh-c9847167089918bb8e11d1f1a83fe1015167ccac.tar.xz
zsh-c9847167089918bb8e11d1f1a83fe1015167ccac.zip
Better handling of multi-line buffers.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zle/edit-command-line7
1 files changed, 2 insertions, 5 deletions
diff --git a/Functions/Zle/edit-command-line b/Functions/Zle/edit-command-line
index 89ce6741b..a7c26e542 100644
--- a/Functions/Zle/edit-command-line
+++ b/Functions/Zle/edit-command-line
@@ -11,10 +11,7 @@ local tmpfile=${TMPPREFIX:-/tmp/zsh}ecl$$
 print -R - "$PREBUFFER$BUFFER" >$tmpfile
 exec </dev/tty
 ${VISUAL:-${EDITOR:-vi}} $tmpfile
-zle kill-buffer
-BUFFER=${"$(<$tmpfile)"/$PREBUFFER/}
-CURSOR=$#BUFFER
+print -z - "$(<$tmpfile)" 
 
 command rm -f $tmpfile
-zle redisplay
-
+zle send-break		# Force reload from the buffer stack