mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
grow our scrollback much faster
This commit is contained in:
@ -570,7 +570,7 @@ fn scrollDelta(self: *Screen, delta: isize, grow: bool) !void {
|
|||||||
// to chunk it.
|
// to chunk it.
|
||||||
const needed_capacity = @maximum(
|
const needed_capacity = @maximum(
|
||||||
rows_final * (self.cols + 1),
|
rows_final * (self.cols + 1),
|
||||||
self.rows * 2,
|
@minimum(self.storage.capacity() * 2, max_capacity),
|
||||||
);
|
);
|
||||||
|
|
||||||
// Allocate what we can.
|
// Allocate what we can.
|
||||||
|
Reference in New Issue
Block a user