mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
The layout drops lines that overflow an area frame vertically, so counting the first paragraph's laid-out lines cannot see a wrapped second line when the frame holds only one. The bisection then found every tracking "one line" and ran to its 2000 ceiling, which spread the line far past the frame (most glyphs clipped away) while the command reported success. one_line now asks whether the first line reaches the end of the first paragraph, which holds regardless of dropped overflow lines. Regression test: area 240x50 at size 36 previously returned tracking 1999.9, now fills the width (avail - w < 5) with the paragraph on one line.