]> diplodocus.org Git - nmh/blobdiff - sbr/geteditor.c
Fixed source charset in mhfixmsg textcharset verbose output.
[nmh] / sbr / geteditor.c
index 693d2d7..a007199 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "geteditor.h"
 #include "context_find.h"
 #include "h/utils.h"
 
@@ -17,11 +18,11 @@ 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;