summary refs log tree commit diff
path: root/Functions/Zle/edit-command-line
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/edit-command-line')
-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