1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-12 14:50:19 +02:00

really newline on eof

* module/system/repl/repl.scm (next-char): Another newline-on-eof case.
This commit is contained in:
Andy Wingo 2008-09-09 08:33:53 +02:00
parent 624e533f4f
commit e91e07811a

View file

@ -141,7 +141,7 @@
(define (next-char wait) (define (next-char wait)
(if (or wait (char-ready?)) (if (or wait (char-ready?))
(let ((ch (peek-char))) (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)) ((char-whitespace? ch) (read-char) (next-char wait))
(else ch))) (else ch)))
#f)) #f))