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