* 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;
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;
}