mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why A double-width character moves to the next row when only one column remains. Dividing the line's display width by the terminal width misses that unused column and can undercount the rows occupied by a long URL. ## What changed Use the same row count to reserve space for history and clear rows before writing. Include the unused column when a wide character wraps, while allowing clusters that start with a narrow character to cross the edge. ## Testing The VT100 snapshot checks that a three-row URL with wide characters appears directly below the preceding prompt. A unit test checks that clusters starting with narrow characters can straddle the right edge. GitOrigin-RevId: 15e76b00f280b0d9e82f5d81fbfa54c1ed8462ca