mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-31 04:39:01 +00:00
terminal: limit scrollback by physical lines
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -293,12 +293,11 @@ pub fn init(
|
||||
opts: Options,
|
||||
) Allocator.Error!Screen {
|
||||
// Initialize our backing pages.
|
||||
var pages = try PageList.init(
|
||||
alloc,
|
||||
opts.cols,
|
||||
opts.rows,
|
||||
opts.max_scrollback,
|
||||
);
|
||||
var pages = try PageList.init(alloc, .{
|
||||
.cols = opts.cols,
|
||||
.rows = opts.rows,
|
||||
.max_size = opts.max_scrollback,
|
||||
});
|
||||
errdefer pages.deinit();
|
||||
|
||||
// Create our tracked pin for the cursor.
|
||||
|
||||
Reference in New Issue
Block a user