fix: scrollback limit not being parsed correctly (#3906)

Change `scrollback-limit` type to a usize rather than a u32 to handle
parsing values larger than 4294967295.

Fixes https://github.com/ghostty-org/ghostty/issues/3900
This commit is contained in:
Mitchell Hashimoto
2024-12-29 08:41:39 -08:00
committed by GitHub

View File

@ -679,7 +679,7 @@ command: ?[]const u8 = null,
/// This is a future planned feature.
///
/// This can be changed at runtime but will only affect new terminal surfaces.
@"scrollback-limit": u32 = 10_000_000, // 10MB
@"scrollback-limit": usize = 10_000_000, // 10MB
/// Match a regular expression against the terminal text and associate clicking
/// it with an action. This can be used to match URLs, file paths, etc. Actions