From: Thomas Roessler Date: Thu, 16 Mar 2000 08:35:06 +0000 (+0000) Subject: Use Editor with a fall-back to visual when editing messages. X-Git-Tag: mutt-1-1-10-rel~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f3fedc862c64187ab074ebb36114db8acac1c168;p=mutt Use Editor with a fall-back to visual when editing messages. --- 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) {