really newline on eof
authorAndy Wingo <wingo@pobox.com>
Tue, 9 Sep 2008 06:33:53 +0000 (08:33 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 9 Sep 2008 06:33:53 +0000 (08:33 +0200)
* module/system/repl/repl.scm (next-char): Another newline-on-eof case.

module/system/repl/repl.scm

index cf948c6..f9d17cd 100644 (file)
 (define (next-char wait)
   (if (or wait (char-ready?))
       (let ((ch (peek-char)))
-       (cond ((eof-object? ch) (throw 'quit))
+       (cond ((eof-object? ch) (newline) (throw 'quit))
              ((char-whitespace? ch) (read-char) (next-char wait))
              (else ch)))
       #f))