]> granicus.if.org Git - mutt/commitdiff
Use Editor with a fall-back to visual when editing messages.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 16 Mar 2000 08:35:06 +0000 (08:35 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 16 Mar 2000 08:35:06 +0000 (08:35 +0000)
editmsg.c

index e2b9a4a3f6604f04fb8e364e501aad9709a23a29..7294cd80787515b97856ed230a896ae00b6d793f 100644 (file)
--- 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)
   {