Fix logic error.

This commit is contained in:
Dianne Skoll
2023-10-04 10:11:49 -04:00
parent a30c467c48
commit 8519edde29

View File

@@ -1038,7 +1038,7 @@ guess_terminal_background(int *r, int *g, int *b)
close(ttyfd);
return;
}
if (!p.revents & POLLIN) {
if (!(p.revents & POLLIN)) {
tty_reset(ttyfd);
close(ttyfd);
return;