mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-25 03:25:52 +00:00
ImGui's CalcWordWrapPosition() only cuts a word mid-word when it fits on no line, i.e. when it is wider than the full line width. PrintTextWrapped passes the leftover width for a glued continuation segment's first line, so a continuation word wider than the leftover (but fitting on the next full-width line) was being cut mid-word. Detect that case and move the whole word to the next line instead.