mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 15:38:22 +00:00
Make linenoise properly recover from backgrounding
This commit is contained in:
parent
2ad1c9078d
commit
b2c6ec6eab
1 changed files with 2 additions and 1 deletions
3
third_party/linenoise/linenoise.c
vendored
3
third_party/linenoise/linenoise.c
vendored
|
@ -772,7 +772,8 @@ static ssize_t linenoiseRead(int fd, char *buf, size_t size,
|
|||
return -1;
|
||||
}
|
||||
if (gotcont && rawmode != -1) {
|
||||
linenoiseEnableRawMode(rawmode);
|
||||
rawmode = -1;
|
||||
linenoiseEnableRawMode(0);
|
||||
if (l) refreshme = 1;
|
||||
}
|
||||
if (l && gotwinch) refreshme = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue