From 39ab4f33c677ec3f28ce58359f5e7ac986b1534f Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 14 Feb 2001 15:37:53 +0000 Subject: 13323: handle multi-line buffers in edit-command-line widget --- Functions/Zle/edit-command-line | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Functions/Zle') diff --git a/Functions/Zle/edit-command-line b/Functions/Zle/edit-command-line index ab2134caf..89ce6741b 100644 --- a/Functions/Zle/edit-command-line +++ b/Functions/Zle/edit-command-line @@ -3,15 +3,18 @@ # autoload edit-command-line # zle -N edit-command-line # bindkey -M vicmd v edit-command-line -# will give ksh-like behaviour for that key. +# will give ksh-like behaviour for that key, +# except that it will handle multi-line buffers properly. local tmpfile=${TMPPREFIX:-/tmp/zsh}ecl$$ -print -R - "$BUFFER" >$tmpfile +print -R - "$PREBUFFER$BUFFER" >$tmpfile exec