mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-01 05:09:01 +00:00
Scrollback limits were fixed when a terminal screen was initialized. Move byte and line state and enforcement into a shared Limits type so PageList can update both constraints after initialization and resize. Add runtime setters to PageList and Terminal. Lowering a limit prunes eligible history immediately, while zero bytes switches the primary screen to no-scrollback behavior and clears retained history. Keep alternate screens unchanged.