about summary refs log tree commit diff
path: root/Functions/Zle/edit-command-line
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-12-16 15:41:13 +0000
committerClint Adams <clint@users.sourceforge.net>2008-12-16 15:41:13 +0000
commit0414a4fd70dc85d5df91b20a60f16c106e15b5f6 (patch)
tree14eaf876d1910b57b5b2a38b3a252d7cd51d6645 /Functions/Zle/edit-command-line
parentb4a2d51e57b1f50db4b9e489652daf35f1e583d0 (diff)
downloadzsh-0414a4fd70dc85d5df91b20a60f16c106e15b5f6.tar.gz
zsh-0414a4fd70dc85d5df91b20a60f16c106e15b5f6.tar.xz
zsh-0414a4fd70dc85d5df91b20a60f16c106e15b5f6.zip
26141: word-split EDITOR/VISUAL so users can have multi-argument commands in those variables.
Diffstat (limited to 'Functions/Zle/edit-command-line')
-rw-r--r--Functions/Zle/edit-command-line2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Zle/edit-command-line b/Functions/Zle/edit-command-line
index 4a9b10a1a..62a59a72e 100644
--- a/Functions/Zle/edit-command-line
+++ b/Functions/Zle/edit-command-line
@@ -10,7 +10,7 @@ local tmpfile=${TMPPREFIX:-/tmp/zsh}ecl$$
 
 print -R - "$PREBUFFER$BUFFER" >$tmpfile
 exec </dev/tty
-${VISUAL:-${EDITOR:-vi}} $tmpfile
+${=${VISUAL:-${EDITOR:-vi}}} $tmpfile
 print -Rz - "$(<$tmpfile)" 
 
 command rm -f $tmpfile