mirror of
https://github.com/openai/codex.git
synced 2026-09-07 15:40:00 +00:00
## Why Tabs in composer text could render at a different width from the cursor and wrapping calculations, causing misaligned cursors and unexpected line breaks. ## What changed - Replace tabs with single-column spaces for wrapping and rendering while preserving the original editable text and byte ranges. - Apply the same display representation to base text, styled elements, and highlighted ranges. ## Testing Add coverage for cursor alignment, rendered output, and wrapping of text that contains tabs. GitOrigin-RevId: 06d8489621d2f8b0823c7a004079d152dd0cab66