Severity: LOW
Status: 🟢 FIXED
Files: docs/text_reflow.md:6-10, src/thai.zig:426-565, src/grid.zig:605-608
docs/text_reflow.md frontmatter lists:
```yaml
sources:
src/reflow.zig does not exist in the codebase. The reflow logic is split between src/grid.zig (line wrapping, cursor tracking, history scrollback), src/screen.zig (resize trigger), and src/thai.zig (Thai cluster detection and libthai word boundary integration).libthai architectural documentation: Sections 3–5 of docs/text_reflow.md detail cluster boundary integrity and $O(1)$ look-ahead/backtracking heuristics, but make zero mention of the ~180-line libthai subsystem. In reality, src/grid.zig:605-608, 688-716 dynamically uses libthai word boundaries when available as the first-class wrapping mechanism prior to falling back to heuristics.$O(1)$ renders literally without math formatting; backtick code style `O(1)` is standard in the documentation bundle.first_thai_idx, the start of the contiguous Thai word token).src/thai.zig:51-52, isThaiFollowingVowel docstring lacks a blank /// before an indented list, collapsing in Markdown renderers.docs/text_reflow.md:
src/reflow.zig with src/thai.zig in the frontmatter sources: list.libthai integration, and Tier 2 fallback cluster and syllable backtracking heuristics.$O(1)$ with `O(1)`.src/thai.zig, insert a blank /// line in isThaiFollowingVowel docstring.docs/text_reflow.md, corrected the frontmatter sources: list (replaced non-existent src/reflow.zig with src/thai.zig).libthai runtime loading and dictionary break mapping in Tier 1.first_thai_idx for leading-vowel-less syllables in Section 4.$O(1)$ with standard markdown code notation `O(1)`./// line in isThaiFollowingVowel docstring in src/thai.zig.src/char_width.zig and added corresponding unit test.