X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/84b0fcf3611555f616abf2dcc80ec30b18f16e29..4d5d51e903a42c23800540930244448c4aacae16:/sbr/geteditor.c diff --git a/sbr/geteditor.c b/sbr/geteditor.c index 693d2d77..a0071998 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "geteditor.h" #include "context_find.h" #include "h/utils.h" @@ -17,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;