]> diplodocus.org Git - nmh/blobdiff - sbr/geteditor.c
Fixed inc(1) and %(me) to not obey Local-Mailbox profile component.
[nmh] / sbr / geteditor.c
index 9889a5e39a31290680205e0969fa0268eab7d44f..a007199854430cb577dbe2c1cb904f255acbe4ba 100644 (file)
@@ -5,8 +5,10 @@
  * 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;
 
@@ -16,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 = "vi";
+       !(str = getenv("EDITOR"))) {
+       str = "prompter";
     }
 
-    return (default_editor = str);
+    return default_editor = str;
 }