mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-21 00:01:26 +01:00
26141: word-split EDITOR/VISUAL so users can have multi-argument commands in those variables.
This commit is contained in:
parent
b4a2d51e57
commit
0414a4fd70
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-12-16 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 26141: Functions/Zle/edit-command-line: word-split
|
||||
EDITOR/VISUAL so users can have multi-argument
|
||||
commands in those variables.
|
||||
|
||||
2008-12-11 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* Frank Terbeck: 26125: Doc/Zsh/contrib.yo,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue