From 3d6c689ffa6ab95e2b59c0fc284038a41f7f598e Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 20 Sep 2024 10:29:37 -0400 Subject: [PATCH] Make oldstyle correctly suppress line editing. --- NEWS.adoc | 3 +++ main.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS.adoc b/NEWS.adoc index 2d0dcee..f9c70d6 100644 --- a/NEWS.adoc +++ b/NEWS.adoc @@ -2,6 +2,9 @@ // SPDX-FileCopyrightText: (C) Eric S. Raymond // SPDX-License-Identifier: CC-BY-4.0 +Repository head:: + Make oldstyle correctly suppress line editing. + 1.19: 2024-06-27:: Ensore that the KNIVES_VANISH message can't issue twice. diff --git a/main.c b/main.c index 2dfa880..e0e4c58 100644 --- a/main.c +++ b/main.c @@ -81,7 +81,7 @@ char *myreadline(const char *prompt) { } } - if (isatty(fileno(settings.scriptfp))) { + if (isatty(fileno(settings.scriptfp)) && !settings.oldstyle) { free(buf); // LCOV_EXCL_LINE return readline(prompt); // LCOV_EXCL_LINE } else { -- 2.31.1