grow our scrollback much faster

This commit is contained in:
Mitchell Hashimoto
2022-09-01 01:15:20 -07:00
parent dba027d307
commit d404be2993

View File

@ -570,7 +570,7 @@ fn scrollDelta(self: *Screen, delta: isize, grow: bool) !void {
// to chunk it.
const needed_capacity = @maximum(
rows_final * (self.cols + 1),
self.rows * 2,
@minimum(self.storage.capacity() * 2, max_capacity),
);
// Allocate what we can.