Files
codewhale/crates
Arron 81fe6de57a fix(ui): force resize-event size during post-resize draw (macOS Terminal.app, ConHost) (#993)
Some terminal emulators (macOS Terminal.app, Windows ConHost) briefly report stale dimensions via `crossterm::terminal::size()` after a resize. ratatui's `draw()` calls `autoresize()` internally, queries the backend, and shrinks the viewport back to the stale dimension — leaving the newly-expanded area filled with stale content from the previous frame (the duplicate-panel symptom users have reported).

The fix adds `force_size` / `clear_forced_size` to `ColorCompatBackend` and forces the resize-event size for the post-resize draw, then clears the forcing for subsequent frames. Same class of fix as #582 but covers an additional emulator family.

Thanks to @ArronAI007 for tracking down the autoresize→stale-size→short-buffer interaction.
2026-05-07 12:44:12 -05:00
..