Revert "repl.scm next-char needed to read EOF from port"
[bpt/guile.git] / module / system / repl / repl.scm
index e416d1d..efe29ac 100644 (file)
 (define (next-char wait)
   (if (or wait (char-ready?))
       (let ((ch (peek-char)))
-       (cond ((eof-object? ch) (read-char) ch)
+       (cond ((eof-object? ch) ch)
              ((char-whitespace? ch) (read-char) (next-char wait))
              (else ch)))
       #f))