about summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
Diffstat (limited to 'mcom')
-rwxr-xr-xmcom2
1 files changed, 1 insertions, 1 deletions
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