[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay bomb.sh/docs/tty
Something went wrong. Try again.
🐛 fix three edge-case bugs with wide chars at narrow columns master
1. resize() now clamps anchorSubRow using exact wrap count instead of ceil(displayWidth/columns) estimate, which undercounts when boundary waste from wide characters increases actual sub-row count. 2. _recomputeCurrentEstimate() clamps currentEstimatedVisualRow to [0, totalEstimatedVisualRows-1] so the scrollbar invariant holds even when exact wrap counts exceed the estimate. 3. computeWrapPoints() no longer emits wrap point at index 0 when the first visible character is wider than columns — the character overflows its row instead of creating an empty first sub-row. Adds 4 regression tests covering all three fixes.
Author Taras Mankovski Date (Apr 11, 2026, 10:44 AM UTC) Commit 90110cdd 90110cdd9439fac95e1af7fae6ab330c3dc3198d Parent 4ebaa33c 4ebaa33ccf61cbc072f8166713d3dcaa292a811d