mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
really newline on eof
* module/system/repl/repl.scm (next-char): Another newline-on-eof case.
This commit is contained in:
parent
624e533f4f
commit
e91e07811a
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@
|
|||
(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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue