]> diplodocus.org Git - nmh/blobdiff - sbr/geteditor.c
seq_list.c: Move interface to own file.
[nmh] / sbr / geteditor.c
index 80602af34ad479d87dddf9cc56f147a7c690f95e..e946e0a8c42d63d4e73eaf9794b5dbdda0f1217a 100644 (file)
@@ -5,8 +5,8 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "h/utils.h"
 
 static char *default_editor = NULL;
 
@@ -20,8 +20,8 @@ get_default_editor(void)
 
     if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) &&
        !(str = getenv("EDITOR"))) {
-       str = DEFAULT_EDITOR;
+       str = "vi";
     }
 
-    return (default_editor = str);
+    return default_editor = str;
 }