correctly handle bottoming out document buffer
This commit is contained in:
@@ -31,7 +31,8 @@
|
||||
|
||||
(define (next-cmd)
|
||||
(define (iter depth)
|
||||
(when (> depth 0)
|
||||
(when (and (> depth 0)
|
||||
(> (pipe-content-length document-buffer) 0))
|
||||
(let ()
|
||||
(displayln (read-line document-buffer))
|
||||
(iter (sub1 depth)))))
|
||||
|
Reference in New Issue
Block a user