X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ff2b7b715934b346b6121a2a434db116d3203663..3c751489b2aca846fe2305a6a3d189381579b61e:/sbr/geteditor.c diff --git a/sbr/geteditor.c b/sbr/geteditor.c index e946e0a8..a0071998 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -6,6 +6,8 @@ */ #include "h/mh.h" +#include "geteditor.h" +#include "context_find.h" #include "h/utils.h" static char *default_editor = NULL; @@ -16,11 +18,11 @@ get_default_editor(void) 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;