1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

Better handling of multi-line buffers.

This commit is contained in:
Bart Schaefer 2001-03-11 19:30:35 +00:00
parent f46ad1753b
commit c984716708

@ -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