HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efbd589
)
fix case in which we can fail to exit the repl cleanly
author
Andy Wingo
<wingo@pobox.com>
Thu, 18 Sep 2008 18:05:23 +0000
(20:05 +0200)
committer
Andy Wingo
<wingo@pobox.com>
Thu, 18 Sep 2008 18:05:23 +0000
(20:05 +0200)
* 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.
module/system/repl/repl.scm
patch
|
blob
|
blame
|
history
diff --git
a/module/system/repl/repl.scm
b/module/system/repl/repl.scm
index
f9d17cd
..
69a47f3
100644
(file)
--- a/
module/system/repl/repl.scm
+++ b/
module/system/repl/repl.scm
@@
-141,7
+141,7
@@
(define (next-char wait)
(if (or wait (char-ready?))
(let ((ch (peek-char)))
- (cond ((eof-object? ch)
(newline) (throw 'quit)
)
+ (cond ((eof-object? ch)
ch
)
((char-whitespace? ch) (read-char) (next-char wait))
(else ch)))
#f))