Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: edit-command-line with spaces in EDITOR



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