about summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2021-04-21 15:10:28 +0200
committerLeah Neukirchen <leah@vuxu.org>2021-04-21 15:10:28 +0200
commit93e8a4a8920360c730f80f6dfe4353e626bf3502 (patch)
tree0fba96eaf4e04e9f7e7b145e08190df356c47416 /mcom
parente8981b723d35c530ef217140c965287ecd0e9031 (diff)
downloadmblaze-93e8a4a8920360c730f80f6dfe4353e626bf3502.tar.gz
mblaze-93e8a4a8920360c730f80f6dfe4353e626bf3502.tar.xz
mblaze-93e8a4a8920360c730f80f6dfe4353e626bf3502.zip
mcom: also read $VISUAL to find the editor
Closes #206.
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