mcom: also read $VISUAL to find the editor

Closes #206.
pull/209/head
Leah Neukirchen 3 years ago
parent e8981b723d
commit 93e8a4a892

@ -1,4 +1,4 @@
.Dd February 5, 2020 .Dd April 21, 2021
.Dt MCOM 1 .Dt MCOM 1
.Os .Os
.Sh NAME .Sh NAME
@ -132,8 +132,10 @@ Preview the draft, using
.El .El
.Sh ENVIRONMENT .Sh ENVIRONMENT
.Bl -tag -width Ds .Bl -tag -width Ds
.It Ev EDITOR .It Ev EDITOR , Ev VISUAL
Editor used to compose messages. Editor used to compose messages.
(Default:
.Xr vi 1 )
.It Ev MBLAZE .It Ev MBLAZE
Directory containing mblaze configuration files. Directory containing mblaze configuration files.
(Default: (Default:

@ -493,7 +493,7 @@ while :; do
;; ;;
e|edit) e|edit)
c= c=
if ! ${EDITOR:-vi} "$draft"; then if ! ${VISUAL:-${EDITOR:-vi}} "$draft"; then
c=d c=d
else else
if checksensible "$draft"; then if checksensible "$draft"; then

Loading…
Cancel
Save