Clean up some code

This commit is contained in:
Justine Tunney 2022-12-11 14:30:50 -08:00
parent 531bfbd61f
commit ed161b240e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
17 changed files with 107 additions and 182 deletions

View file

@ -2328,7 +2328,7 @@ static void OnKeyboardServiceReadKeyPress(void) {
static char buf[32];
static size_t pending;
pty->conf |= kPtyBlinkcursor;
if (!pending && !(pending = ReadAnsi(0, buf, sizeof(buf)))) {
if (!pending && !(pending = ReadAnsi(ttyin, buf, sizeof(buf)))) {
exitcode = 0;
action |= EXIT;
return;