X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2271a2161d7c3ebb81da26f877754f4b726a76bf..6a420d96a080e04da6c441f88cc52e60fe661089:/sbr/geteditor.c diff --git a/sbr/geteditor.c b/sbr/geteditor.c index 2fbe1f56..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,7 +22,7 @@ get_default_editor(void) if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) && !(str = getenv("EDITOR"))) { - str = "vi"; + str = "prompter"; } return default_editor = str;