Skip to content

Commit

Permalink
Merge branch 'main' of github.com:lem-project/lem
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Jan 3, 2024
2 parents 678b01f + 4b933a3 commit 4652d0f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/display/physical-line.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,16 @@
left-side-objects
left-side-width)
(let* ((objects-per-physical-line
(separate-objects-by-width
(append left-side-objects (create-drawing-objects logical-line))
(window-view-width window))))
(separate-objects-by-width (create-drawing-objects logical-line)
(- (window-view-width window) left-side-width)))
(height (max-height-of-objects (car objects-per-physical-line)))
(empty-left-side-objects (list (make-object-with-type (make-string left-side-width :initial-element #\space) nil nil))))
(render-line-with-caching window 0 y left-side-objects height)
(loop :for objects :in objects-per-physical-line
:for height := (max-height-of-objects objects)
:for x := 0 :then left-side-width
:do (render-line-with-caching window x y objects height)
:for first := t :then nil
:do (unless first (render-line-with-caching window 0 y empty-left-side-objects height))
(render-line-with-caching window left-side-width y objects height)
(incf y height)
:sum height)))

Expand Down

0 comments on commit 4652d0f

Please sign in to comment.