X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0a032eea07f6d77ac6ea4d5a39c9491c34358058..1ca8f21e0edfe448b71ac86de1b0cd987547a002:/sbr/geteditor.c?ds=inline diff --git a/sbr/geteditor.c b/sbr/geteditor.c index c8b9986b..2fbe1f56 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -1,5 +1,4 @@ -/* - * geteditor.c -- Determine the default editor to use +/* geteditor.c -- Determine the default editor to use * * This code is Copyright (c) 2013, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -21,8 +20,8 @@ get_default_editor(void) if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) && !(str = getenv("EDITOR"))) { - str = DEFAULT_EDITOR; + str = "vi"; } - return (default_editor = str); + return default_editor = str; }