summaryrefslogtreecommitdiffstats
path: root/editmsg.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-03-16 08:35:06 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-03-16 08:35:06 +0000
commitf3fedc862c64187ab074ebb36114db8acac1c168 (patch)
treeb662efc91acc0a3563589c423e8906f4ac47ca46 /editmsg.c
parent97ef16fccca4be6a4960082a2c7149e7f49b33bb (diff)
Use Editor with a fall-back to visual when editing messages.
Diffstat (limited to 'editmsg.c')
-rw-r--r--editmsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/editmsg.c b/editmsg.c
index e2b9a4a3..7294cd80 100644
--- a/editmsg.c
+++ b/editmsg.c
@@ -87,7 +87,8 @@ static int edit_one_message (CONTEXT *ctx, HEADER *cur)
if (stat (tmp, &sb) == 0)
mtime = sb.st_mtime;
- mutt_edit_file (NONULL (Visual), tmp);
+ mutt_edit_file ((!Editor || mutt_strcmp ("builtin", Editor) == 0) ?
+ NONULL(Visual) : NONULL(Editor), tmp);
if ((rc = stat (tmp, &sb)) == -1)
{