fix condense-mode slide counting in `with-steps'

This commit is contained in:
Matthew Flatt 2012-08-25 07:38:17 -06:00
parent a523270025
commit 2504eec834

View File

@ -105,9 +105,13 @@
(and (after?/p p1) (not (after?/p p2))))
(let () expr0 expr ...))
(if (and condensing condense?)
(last-pair steps)
(begin
(skip-slides (sub1 (length steps)))
(last-pair steps))
(if condense?
(filter (lambda (id)
(not (regexp-match #rx"~$" (symbol->string id))))
steps)
(let ([l (filter (lambda (id)
(not (regexp-match #rx"~$" (symbol->string id))))
steps)])
(skip-slides (- (length steps) (length l)))
l)
steps))))))])))