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:
624e533
)
really newline on eof
author
Andy Wingo
<wingo@pobox.com>
Tue, 9 Sep 2008 06:33:53 +0000
(08:33 +0200)
committer
Andy 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
patch
|
blob
|
blame
|
history
diff --git
a/module/system/repl/repl.scm
b/module/system/repl/repl.scm
index
cf948c6
..
f9d17cd
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) (throw 'quit))
+ (cond ((eof-object? ch) (
newline) (
throw 'quit))
((char-whitespace? ch) (read-char) (next-char wait))
(else ch)))
#f))