*/
#include "h/mh.h"
+#include "geteditor.h"
#include "context_find.h"
#include "h/utils.h"
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;