diff options
-rw-r--r-- | linenoise/linenoise.c | 2 | ||||
-rw-r--r-- | txr.1 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index c82e0ca2..99af2418 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -1940,7 +1940,7 @@ static void edit_in_editor(lino_t *l) { char *ed = getenv("EDITOR"); char path[128]; - if (ed) { + if (ed && ed[0] != '\0') { const char *ho = get_home(); int fd; #if HAVE_MKSTEMPS @@ -81621,7 +81621,7 @@ terminates, the file is read into the editing buffer. The editor is determined from the .code EDITOR -environment variable. If this variable doesn't exist, +environment variable. If this variable is unset or empty, the command does nothing. The temporary file is created in the home directory, if that can |