diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-11 19:30:35 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-11 19:30:35 +0000 |
commit | c9847167089918bb8e11d1f1a83fe1015167ccac (patch) | |
tree | ed2a69477fd9c2b7c7dc06b73aa99a48a7186a0a /Functions | |
parent | f46ad1753bc86fddddbef87ffa659f66bbadef5d (diff) | |
download | zsh-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-line | 7 |
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 |