Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rfindler committed Sep 12, 2012
1 parent e7b1af8 commit b8acee5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions collects/redex/private/core-layout.rkt
Expand Up @@ -340,7 +340,7 @@
0))])
(cond
[(and after-next-lw (null? to-wrap))
(list* next-lw (loop after-next-lw next-line next-column))]
(cons next-lw (loop after-next-lw next-line next-column))]
[(and (not after-next-lw) (null? to-wrap))
'()]
[else
Expand Down Expand Up @@ -443,10 +443,9 @@
(set! gobbled-lines (+ gobbled-lines lines-to-end))]
[else
;; insert a bunch of blank lines
(for-each
(λ (i)
(set! lines (cons (make-line (+ (- current-line gobbled-lines) i) '()) lines)))
(build-list (- lines-to-end 1) add1))])
(for/list ([i (in-range 1 lines-to-end)])
(define new-line (make-line (+ (- current-line gobbled-lines) i) '()))
(set! lines (cons new-line lines)))])


(set! tokens (cons (make-spacer-token 0 (- col initial-column))
Expand Down

0 comments on commit b8acee5

Please sign in to comment.