From 39a12997e2d7705a2760a1198932f23f4e590aab Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sun, 3 Sep 2017 00:22:18 +0100 Subject: [PATCH] geteditor.c: Hard-code the default, "vi". It was the only use of the DEFAULT_EDITOR macro, so that can be deleted. --- h/nmh.h | 1 - sbr/geteditor.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/h/nmh.h b/h/nmh.h index 07f7240b..7336c24b 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -83,4 +83,3 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream); */ #define DEFAULT_PAGER "more" -#define DEFAULT_EDITOR "vi" diff --git a/sbr/geteditor.c b/sbr/geteditor.c index 80602af3..9889a5e3 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -20,7 +20,7 @@ get_default_editor(void) if (!(str = context_find("editor")) && !(str = getenv("VISUAL")) && !(str = getenv("EDITOR"))) { - str = DEFAULT_EDITOR; + str = "vi"; } return (default_editor = str); -- 2.56.0