about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--man/mcom.16
-rwxr-xr-xmcom2
2 files changed, 5 insertions, 3 deletions
diff --git a/man/mcom.1 b/man/mcom.1
index 5e1b940..36fd6f3 100644
--- a/man/mcom.1
+++ b/man/mcom.1
@@ -1,4 +1,4 @@
-.Dd February 5, 2020
+.Dd April 21, 2021
 .Dt MCOM 1
 .Os
 .Sh NAME
@@ -132,8 +132,10 @@ Preview the draft, using
 .El
 .Sh ENVIRONMENT
 .Bl -tag -width Ds
-.It Ev EDITOR
+.It Ev EDITOR , Ev VISUAL
 Editor used to compose messages.
+(Default:
+.Xr vi 1 )
 .It Ev MBLAZE
 Directory containing mblaze configuration files.
 (Default:
diff --git a/mcom b/mcom
index c378b33..057a998 100755
--- a/mcom
+++ b/mcom
@@ -493,7 +493,7 @@ while :; do
 		;;
 	e|edit)
 		c=
-		if ! ${EDITOR:-vi} "$draft"; then
+		if ! ${VISUAL:-${EDITOR:-vi}} "$draft"; then
 			c=d
 		else
 			if checksensible "$draft"; then