]> diplodocus.org Git - nmh/blobdiff - sbr/geteditor.c
Fixed source charset in mhfixmsg textcharset verbose output.
[nmh] / sbr / geteditor.c
index 6c285da..a007199 100644 (file)
@@ -1,14 +1,14 @@
-
-/*
- * geteditor.c -- Determine the default editor to use
+/* geteditor.c -- Determine the default editor to use
  *
  * This code is Copyright (c) 2013, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "geteditor.h"
+#include "context_find.h"
+#include "h/utils.h"
 
 static char *default_editor = NULL;
 
@@ -18,12 +18,12 @@ get_default_editor(void)
     char *str;
 
     if (default_editor)
-       return default_editor;
+       return default_editor;
 
     if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) &&
-       !(str = getenv("EDITOR"))) {
-       str = DEFAULT_EDITOR;
+       !(str = getenv("EDITOR"))) {
+       str = "prompter";
     }
 
-    return (default_editor = str);
+    return default_editor = str;
 }