Make oldstyle correctly suppress line editing.

This commit is contained in:
Eric S. Raymond 2024-09-20 10:29:37 -04:00
parent 8dcc6e6641
commit 3d6c689ffa
2 changed files with 4 additions and 1 deletions

2
main.c
View file

@ -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 {