Make oldstyle correctly suppress line editing.
This commit is contained in:
parent
8dcc6e6641
commit
3d6c689ffa
2 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
|||
// SPDX-FileCopyrightText: (C) Eric S. Raymond <esr@thyrsus.com>
|
||||
// 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.
|
||||
|
||||
|
|
2
main.c
2
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue