Cosmetic change (thanks Harry Porter)

This commit is contained in:
Frans Kaashoek 2022-08-12 12:59:33 -04:00
parent 62bc610424
commit 8f58cc7df9

View file

@ -165,7 +165,7 @@ consoleintr(int c)
// store for consumption by consoleread().
cons.buf[cons.e++ % INPUT_BUF_SIZE] = c;
if(c == '\n' || c == C('D') || cons.e == cons.r+INPUT_BUF_SIZE){
if(c == '\n' || c == C('D') || cons.e-cons.r == INPUT_BUF_SIZE){
// wake up consoleread() if a whole line (or end-of-file)
// has arrived.
cons.w = cons.e;