mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 04:30:19 +02:00
fix case in which we can fail to exit the repl cleanly
* module/system/repl/repl.scm (next-char): Don't throw if we get an EOF, just return the EOF object. Fixes a case in which we fail to exit cleanly.
This commit is contained in:
parent
efbd589204
commit
d600df9aa9
1 changed files with 1 additions and 1 deletions
|
@ -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) (newline) (throw 'quit))
|
(cond ((eof-object? ch) ch)
|
||||||
((char-whitespace? ch) (read-char) (next-char wait))
|
((char-whitespace? ch) (read-char) (next-char wait))
|
||||||
(else ch)))
|
(else ch)))
|
||||||
#f))
|
#f))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue