Skip to content

Commit

Permalink
avoid infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Dec 2, 2023
1 parent 9dbce7a commit bf66f01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/display/physical-line.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@
:and physical-line-objects := '()
:for object := (pop objects)
:while object
:do (cond ((<= view-width (+ total-width (object-width object)))
(cond ((and (typep object 'text-object)
(< 1 (length (text-object-string object))))
:do (cond ((and (typep object 'text-object)
(<= view-width (+ total-width (object-width object))))
(cond ((< 1 (length (text-object-string object)))
(setf objects (nconc (explode-object object) objects)))
(t
(push object objects)
Expand Down

0 comments on commit bf66f01

Please sign in to comment.