X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..366cc6fc4c7bf1eed47cc9b52d0ef809b2e90174:/sbr/geteditor.c?ds=sidebyside diff --git a/sbr/geteditor.c b/sbr/geteditor.c index 80602af3..9ef6f5c0 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -5,8 +5,10 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "geteditor.h" +#include "context_find.h" +#include "h/utils.h" static char *default_editor = NULL; @@ -20,8 +22,8 @@ get_default_editor(void) if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) && !(str = getenv("EDITOR"))) { - str = DEFAULT_EDITOR; + str = "prompter"; } - return (default_editor = str); + return default_editor = str; }