* 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;
if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) &&
!(str = getenv("EDITOR"))) {
- str = DEFAULT_EDITOR;
+ str = "vi";
}
- return (default_editor = str);
+ return default_editor = str;
}