Cosmetic change (thanks Harry Porter)
This commit is contained in:
parent
62bc610424
commit
8f58cc7df9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue