Make linenoise properly recover from backgrounding

This commit is contained in:
Justine Tunney 2022-05-17 12:10:22 -07:00
parent 2ad1c9078d
commit b2c6ec6eab

View file

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