Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: edit-command-line with spaces in EDITOR
- X-seq: zsh-workers 26141
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: edit-command-line with spaces in EDITOR
- Date: Tue, 16 Dec 2008 15:38:46 +0000
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Apparently people want to set EDITOR to things like
"connect-emacs editor -t".
Index: Functions/Zle/edit-command-line
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Zle/edit-command-line,v
retrieving revision 1.6
diff -u -r1.6 edit-command-line
--- Functions/Zle/edit-command-line 11 Jul 2008 19:12:24 -0000 1.6
+++ Functions/Zle/edit-command-line 16 Dec 2008 15:37:21 -0000
@@ -10,7 +10,7 @@
print -R - "$PREBUFFER$BUFFER" >$tmpfile
exec </dev/tty
-${VISUAL:-${EDITOR:-vi}} $tmpfile
+${=${VISUAL:-${EDITOR:-vi}}} $tmpfile
print -Rz - "$(<$tmpfile)"
command rm -f $tmpfile
Messages sorted by:
Reverse Date,
Date,
Thread,
Author